@strimz/shared-types 0.7.0 → 0.8.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.
@@ -20,26 +20,26 @@ declare const storefrontSchema: z.ZodObject<{
20
20
  createdAt: z.ZodString;
21
21
  updatedAt: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
- status: "archived" | "draft" | "published";
24
- id: string;
23
+ status: "draft" | "archived" | "published";
25
24
  merchantId: string;
26
- name: string;
27
- createdAt: string;
28
25
  description: string | null;
26
+ id: string;
27
+ createdAt: string;
29
28
  updatedAt: string;
29
+ name: string;
30
30
  logoUrl: string | null;
31
31
  slug: string;
32
32
  coverImageUrl: string | null;
33
33
  accentColor: string | null;
34
34
  socialLinks: string[];
35
35
  }, {
36
- status: "archived" | "draft" | "published";
37
- id: string;
36
+ status: "draft" | "archived" | "published";
38
37
  merchantId: string;
39
- name: string;
40
- createdAt: string;
41
38
  description: string | null;
39
+ id: string;
40
+ createdAt: string;
42
41
  updatedAt: string;
42
+ name: string;
43
43
  logoUrl: string | null;
44
44
  slug: string;
45
45
  coverImageUrl: string | null;
@@ -60,17 +60,17 @@ declare const createStorefrontInputSchema: z.ZodObject<Pick<{
60
60
  status: z.ZodEnum<["draft", "published", "archived"]>;
61
61
  createdAt: z.ZodString;
62
62
  updatedAt: z.ZodString;
63
- }, "name" | "description" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
64
- name: string;
63
+ }, "description" | "name" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
65
64
  description: string | null;
65
+ name: string;
66
66
  logoUrl: string | null;
67
67
  slug: string;
68
68
  coverImageUrl: string | null;
69
69
  accentColor: string | null;
70
70
  socialLinks: string[];
71
71
  }, {
72
- name: string;
73
72
  description: string | null;
73
+ name: string;
74
74
  logoUrl: string | null;
75
75
  slug: string;
76
76
  coverImageUrl: string | null;
@@ -101,12 +101,12 @@ declare const storefrontProductSchema: z.ZodObject<{
101
101
  updatedAt: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  type: "subscription" | "one_time";
104
- id: string;
105
- name: string;
106
- createdAt: string;
107
104
  currency: "USDC" | "EURC";
108
105
  description: string | null;
106
+ id: string;
107
+ createdAt: string;
109
108
  updatedAt: string;
109
+ name: string;
110
110
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
111
111
  intervalCount: number | null;
112
112
  planId: string | null;
@@ -118,12 +118,12 @@ declare const storefrontProductSchema: z.ZodObject<{
118
118
  sortOrder: number;
119
119
  }, {
120
120
  type: "subscription" | "one_time";
121
- id: string;
122
- name: string;
123
- createdAt: string;
124
121
  currency: "USDC" | "EURC";
125
122
  description: string | null;
123
+ id: string;
124
+ createdAt: string;
126
125
  updatedAt: string;
126
+ name: string;
127
127
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
128
128
  intervalCount: number | null;
129
129
  planId: string | null;
@@ -137,9 +137,9 @@ declare const storefrontProductSchema: z.ZodObject<{
137
137
  type StorefrontProduct = z.infer<typeof storefrontProductSchema>;
138
138
  declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
139
139
  type: z.ZodEnum<["one_time", "subscription"]>;
140
- name: z.ZodString;
141
140
  currency: z.ZodEnum<["USDC", "EURC"]>;
142
141
  description: z.ZodNullable<z.ZodString>;
142
+ name: z.ZodString;
143
143
  interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
144
144
  intervalCount: z.ZodNullable<z.ZodNumber>;
145
145
  price: z.ZodEffects<z.ZodString, string, string>;
@@ -151,9 +151,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
151
151
  planId: z.ZodOptional<z.ZodString>;
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  type: "subscription" | "one_time";
154
- name: string;
155
154
  currency: "USDC" | "EURC";
156
155
  description: string | null;
156
+ name: string;
157
157
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
158
158
  intervalCount: number | null;
159
159
  price: string;
@@ -164,9 +164,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
164
164
  imageUrl?: string | undefined;
165
165
  }, {
166
166
  type: "subscription" | "one_time";
167
- name: string;
168
167
  currency: "USDC" | "EURC";
169
168
  description: string | null;
169
+ name: string;
170
170
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
171
171
  intervalCount: number | null;
172
172
  price: string;
@@ -177,9 +177,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
177
177
  sortOrder?: number | undefined;
178
178
  }>, {
179
179
  type: "subscription" | "one_time";
180
- name: string;
181
180
  currency: "USDC" | "EURC";
182
181
  description: string | null;
182
+ name: string;
183
183
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
184
184
  intervalCount: number | null;
185
185
  price: string;
@@ -190,9 +190,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
190
190
  imageUrl?: string | undefined;
191
191
  }, {
192
192
  type: "subscription" | "one_time";
193
- name: string;
194
193
  currency: "USDC" | "EURC";
195
194
  description: string | null;
195
+ name: string;
196
196
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
197
197
  intervalCount: number | null;
198
198
  price: string;
@@ -232,12 +232,12 @@ declare const storefrontCheckoutResponseSchema: z.ZodObject<{
232
232
  /** Which downstream checkout the URL points at. */
233
233
  kind: z.ZodEnum<["payment_session", "subscription_plan"]>;
234
234
  }, "strip", z.ZodTypeAny, {
235
- kind: "payment_session" | "subscription_plan";
236
235
  checkoutUrl: string;
236
+ kind: "payment_session" | "subscription_plan";
237
237
  ref: string;
238
238
  }, {
239
- kind: "payment_session" | "subscription_plan";
240
239
  checkoutUrl: string;
240
+ kind: "payment_session" | "subscription_plan";
241
241
  ref: string;
242
242
  }>;
243
243
  type StorefrontCheckoutResponse = z.infer<typeof storefrontCheckoutResponseSchema>;
@@ -48,34 +48,34 @@ declare const subscriptionPlanSchema: z.ZodObject<{
48
48
  updatedAt: z.ZodString;
49
49
  }, "strip", z.ZodTypeAny, {
50
50
  status: "active" | "archived";
51
- id: string;
52
- merchantId: string;
53
- name: string;
54
- createdAt: string;
55
- metadata: Record<string, string | number | boolean | null>;
56
- chainMerchantId: string | null;
57
- tokenAddress: string | null;
58
51
  amount: string;
59
52
  currency: "USDC" | "EURC";
53
+ merchantId: string;
60
54
  description: string | null;
55
+ id: string;
56
+ createdAt: string;
61
57
  updatedAt: string;
58
+ chainMerchantId: string | null;
59
+ tokenAddress: string | null;
60
+ metadata: Record<string, string | number | boolean | null>;
62
61
  intervalSeconds: number;
62
+ name: string;
63
63
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
64
64
  intervalCount: number;
65
65
  trialPeriodDays: number | null;
66
66
  }, {
67
67
  status: "active" | "archived";
68
- id: string;
69
- merchantId: string;
70
- name: string;
71
- createdAt: string;
72
- chainMerchantId: string | null;
73
- tokenAddress: string | null;
74
68
  amount: string;
75
69
  currency: "USDC" | "EURC";
70
+ merchantId: string;
76
71
  description: string | null;
72
+ id: string;
73
+ createdAt: string;
77
74
  updatedAt: string;
75
+ chainMerchantId: string | null;
76
+ tokenAddress: string | null;
78
77
  intervalSeconds: number;
78
+ name: string;
79
79
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
80
80
  intervalCount: number;
81
81
  trialPeriodDays: number | null;
@@ -92,21 +92,21 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
92
92
  trialPeriodDays: z.ZodOptional<z.ZodNumber>;
93
93
  metadata: z.ZodOptional<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>>>>;
94
94
  }, "strip", z.ZodTypeAny, {
95
- name: string;
96
95
  amount: string;
97
96
  currency: "USDC" | "EURC";
97
+ name: string;
98
98
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
99
99
  intervalCount: number;
100
- metadata?: Record<string, string | number | boolean | null> | undefined;
101
100
  description?: string | undefined;
101
+ metadata?: Record<string, string | number | boolean | null> | undefined;
102
102
  trialPeriodDays?: number | undefined;
103
103
  }, {
104
- name: string;
105
104
  amount: string;
106
105
  currency: "USDC" | "EURC";
106
+ name: string;
107
107
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
108
- metadata?: Record<string, string | number | boolean | null> | undefined;
109
108
  description?: string | undefined;
109
+ metadata?: Record<string, string | number | boolean | null> | undefined;
110
110
  intervalCount?: number | undefined;
111
111
  trialPeriodDays?: number | undefined;
112
112
  }>;
@@ -136,15 +136,15 @@ declare const subscriptionSchema: z.ZodObject<{
136
136
  createdAt: z.ZodString;
137
137
  updatedAt: z.ZodString;
138
138
  }, "strip", z.ZodTypeAny, {
139
- status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
140
- id: string;
141
- merchantId: string;
142
- createdAt: string;
143
- metadata: Record<string, string | number | boolean | null>;
144
- customerId: string;
139
+ status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
145
140
  amount: string;
146
141
  currency: "USDC" | "EURC";
142
+ customerId: string;
143
+ merchantId: string;
144
+ id: string;
145
+ createdAt: string;
147
146
  updatedAt: string;
147
+ metadata: Record<string, string | number | boolean | null>;
148
148
  payerAddress: string;
149
149
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
150
150
  intervalCount: number;
@@ -157,13 +157,13 @@ declare const subscriptionSchema: z.ZodObject<{
157
157
  gracePeriodHours: number;
158
158
  cancelledAt: string | null;
159
159
  }, {
160
- status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
161
- id: string;
162
- merchantId: string;
163
- createdAt: string;
164
- customerId: string;
160
+ status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
165
161
  amount: string;
166
162
  currency: "USDC" | "EURC";
163
+ customerId: string;
164
+ merchantId: string;
165
+ id: string;
166
+ createdAt: string;
167
167
  updatedAt: string;
168
168
  payerAddress: string;
169
169
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
@@ -184,11 +184,11 @@ declare const subscriptionStatusResultSchema: z.ZodObject<{
184
184
  active: z.ZodBoolean;
185
185
  subscriptionId: z.ZodNullable<z.ZodString>;
186
186
  }, "strip", z.ZodTypeAny, {
187
- subscriptionId: string | null;
188
187
  active: boolean;
189
- }, {
190
188
  subscriptionId: string | null;
189
+ }, {
191
190
  active: boolean;
191
+ subscriptionId: string | null;
192
192
  }>;
193
193
  type SubscriptionStatusResult = z.infer<typeof subscriptionStatusResultSchema>;
194
194
  declare const subscriptionEnrolmentTermsSchema: z.ZodObject<{
@@ -279,14 +279,15 @@ declare const subscriptionChargeSchema: z.ZodObject<{
279
279
  updatedAt: z.ZodString;
280
280
  }, "strip", z.ZodTypeAny, {
281
281
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
282
- id: string;
283
- merchantId: string;
284
- createdAt: string;
285
- subscriptionId: string;
286
282
  amount: string;
287
283
  currency: "USDC" | "EURC";
288
- onchainTxHash: string | null;
284
+ merchantId: string;
285
+ id: string;
286
+ createdAt: string;
289
287
  updatedAt: string;
288
+ onchainTxHash: string | null;
289
+ failureReason: string | null;
290
+ subscriptionId: string;
290
291
  chargeAttemptId: string;
291
292
  periodStartAt: string;
292
293
  periodEndAt: string;
@@ -294,17 +295,17 @@ declare const subscriptionChargeSchema: z.ZodObject<{
294
295
  attemptNumber: number;
295
296
  scheduledAt: string;
296
297
  executedAt: string | null;
297
- failureReason: string | null;
298
298
  }, {
299
299
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
300
- id: string;
301
- merchantId: string;
302
- createdAt: string;
303
- subscriptionId: string;
304
300
  amount: string;
305
301
  currency: "USDC" | "EURC";
306
- onchainTxHash: string | null;
302
+ merchantId: string;
303
+ id: string;
304
+ createdAt: string;
307
305
  updatedAt: string;
306
+ onchainTxHash: string | null;
307
+ failureReason: string | null;
308
+ subscriptionId: string;
308
309
  chargeAttemptId: string;
309
310
  periodStartAt: string;
310
311
  periodEndAt: string;
@@ -312,7 +313,6 @@ declare const subscriptionChargeSchema: z.ZodObject<{
312
313
  attemptNumber: number;
313
314
  scheduledAt: string;
314
315
  executedAt: string | null;
315
- failureReason: string | null;
316
316
  }>;
317
317
  type SubscriptionCharge = z.infer<typeof subscriptionChargeSchema>;
318
318
 
@@ -48,34 +48,34 @@ declare const subscriptionPlanSchema: z.ZodObject<{
48
48
  updatedAt: z.ZodString;
49
49
  }, "strip", z.ZodTypeAny, {
50
50
  status: "active" | "archived";
51
- id: string;
52
- merchantId: string;
53
- name: string;
54
- createdAt: string;
55
- metadata: Record<string, string | number | boolean | null>;
56
- chainMerchantId: string | null;
57
- tokenAddress: string | null;
58
51
  amount: string;
59
52
  currency: "USDC" | "EURC";
53
+ merchantId: string;
60
54
  description: string | null;
55
+ id: string;
56
+ createdAt: string;
61
57
  updatedAt: string;
58
+ chainMerchantId: string | null;
59
+ tokenAddress: string | null;
60
+ metadata: Record<string, string | number | boolean | null>;
62
61
  intervalSeconds: number;
62
+ name: string;
63
63
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
64
64
  intervalCount: number;
65
65
  trialPeriodDays: number | null;
66
66
  }, {
67
67
  status: "active" | "archived";
68
- id: string;
69
- merchantId: string;
70
- name: string;
71
- createdAt: string;
72
- chainMerchantId: string | null;
73
- tokenAddress: string | null;
74
68
  amount: string;
75
69
  currency: "USDC" | "EURC";
70
+ merchantId: string;
76
71
  description: string | null;
72
+ id: string;
73
+ createdAt: string;
77
74
  updatedAt: string;
75
+ chainMerchantId: string | null;
76
+ tokenAddress: string | null;
78
77
  intervalSeconds: number;
78
+ name: string;
79
79
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
80
80
  intervalCount: number;
81
81
  trialPeriodDays: number | null;
@@ -92,21 +92,21 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
92
92
  trialPeriodDays: z.ZodOptional<z.ZodNumber>;
93
93
  metadata: z.ZodOptional<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>>>>;
94
94
  }, "strip", z.ZodTypeAny, {
95
- name: string;
96
95
  amount: string;
97
96
  currency: "USDC" | "EURC";
97
+ name: string;
98
98
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
99
99
  intervalCount: number;
100
- metadata?: Record<string, string | number | boolean | null> | undefined;
101
100
  description?: string | undefined;
101
+ metadata?: Record<string, string | number | boolean | null> | undefined;
102
102
  trialPeriodDays?: number | undefined;
103
103
  }, {
104
- name: string;
105
104
  amount: string;
106
105
  currency: "USDC" | "EURC";
106
+ name: string;
107
107
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
108
- metadata?: Record<string, string | number | boolean | null> | undefined;
109
108
  description?: string | undefined;
109
+ metadata?: Record<string, string | number | boolean | null> | undefined;
110
110
  intervalCount?: number | undefined;
111
111
  trialPeriodDays?: number | undefined;
112
112
  }>;
@@ -136,15 +136,15 @@ declare const subscriptionSchema: z.ZodObject<{
136
136
  createdAt: z.ZodString;
137
137
  updatedAt: z.ZodString;
138
138
  }, "strip", z.ZodTypeAny, {
139
- status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
140
- id: string;
141
- merchantId: string;
142
- createdAt: string;
143
- metadata: Record<string, string | number | boolean | null>;
144
- customerId: string;
139
+ status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
145
140
  amount: string;
146
141
  currency: "USDC" | "EURC";
142
+ customerId: string;
143
+ merchantId: string;
144
+ id: string;
145
+ createdAt: string;
147
146
  updatedAt: string;
147
+ metadata: Record<string, string | number | boolean | null>;
148
148
  payerAddress: string;
149
149
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
150
150
  intervalCount: number;
@@ -157,13 +157,13 @@ declare const subscriptionSchema: z.ZodObject<{
157
157
  gracePeriodHours: number;
158
158
  cancelledAt: string | null;
159
159
  }, {
160
- status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
161
- id: string;
162
- merchantId: string;
163
- createdAt: string;
164
- customerId: string;
160
+ status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
165
161
  amount: string;
166
162
  currency: "USDC" | "EURC";
163
+ customerId: string;
164
+ merchantId: string;
165
+ id: string;
166
+ createdAt: string;
167
167
  updatedAt: string;
168
168
  payerAddress: string;
169
169
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
@@ -184,11 +184,11 @@ declare const subscriptionStatusResultSchema: z.ZodObject<{
184
184
  active: z.ZodBoolean;
185
185
  subscriptionId: z.ZodNullable<z.ZodString>;
186
186
  }, "strip", z.ZodTypeAny, {
187
- subscriptionId: string | null;
188
187
  active: boolean;
189
- }, {
190
188
  subscriptionId: string | null;
189
+ }, {
191
190
  active: boolean;
191
+ subscriptionId: string | null;
192
192
  }>;
193
193
  type SubscriptionStatusResult = z.infer<typeof subscriptionStatusResultSchema>;
194
194
  declare const subscriptionEnrolmentTermsSchema: z.ZodObject<{
@@ -279,14 +279,15 @@ declare const subscriptionChargeSchema: z.ZodObject<{
279
279
  updatedAt: z.ZodString;
280
280
  }, "strip", z.ZodTypeAny, {
281
281
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
282
- id: string;
283
- merchantId: string;
284
- createdAt: string;
285
- subscriptionId: string;
286
282
  amount: string;
287
283
  currency: "USDC" | "EURC";
288
- onchainTxHash: string | null;
284
+ merchantId: string;
285
+ id: string;
286
+ createdAt: string;
289
287
  updatedAt: string;
288
+ onchainTxHash: string | null;
289
+ failureReason: string | null;
290
+ subscriptionId: string;
290
291
  chargeAttemptId: string;
291
292
  periodStartAt: string;
292
293
  periodEndAt: string;
@@ -294,17 +295,17 @@ declare const subscriptionChargeSchema: z.ZodObject<{
294
295
  attemptNumber: number;
295
296
  scheduledAt: string;
296
297
  executedAt: string | null;
297
- failureReason: string | null;
298
298
  }, {
299
299
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
300
- id: string;
301
- merchantId: string;
302
- createdAt: string;
303
- subscriptionId: string;
304
300
  amount: string;
305
301
  currency: "USDC" | "EURC";
306
- onchainTxHash: string | null;
302
+ merchantId: string;
303
+ id: string;
304
+ createdAt: string;
307
305
  updatedAt: string;
306
+ onchainTxHash: string | null;
307
+ failureReason: string | null;
308
+ subscriptionId: string;
308
309
  chargeAttemptId: string;
309
310
  periodStartAt: string;
310
311
  periodEndAt: string;
@@ -312,7 +313,6 @@ declare const subscriptionChargeSchema: z.ZodObject<{
312
313
  attemptNumber: number;
313
314
  scheduledAt: string;
314
315
  executedAt: string | null;
315
- failureReason: string | null;
316
316
  }>;
317
317
  type SubscriptionCharge = z.infer<typeof subscriptionChargeSchema>;
318
318
 
@@ -34,41 +34,41 @@ declare const transactionSchema: z.ZodObject<{
34
34
  createdAt: z.ZodString;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  status: "confirmed" | "failed" | "pending";
37
- id: string;
38
- merchantId: string;
39
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
40
- createdAt: string;
41
- sessionId: string | null;
42
- subscriptionId: string | null;
43
- customerId: string | null;
44
37
  amount: string;
45
38
  currency: "USDC" | "EURC";
39
+ customerId: string | null;
40
+ merchantId: string;
41
+ id: string;
42
+ sessionId: string | null;
43
+ createdAt: string;
46
44
  feeAmount: string;
47
45
  netAmount: string;
48
46
  onchainTxHash: string;
47
+ payerAddress: string;
48
+ subscriptionId: string | null;
49
+ kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
49
50
  subscriptionChargeId: string | null;
50
51
  refundId: string | null;
51
- payerAddress: string;
52
52
  merchantAddress: string;
53
53
  blockNumber: number;
54
54
  blockTimestamp: string;
55
55
  }, {
56
56
  status: "confirmed" | "failed" | "pending";
57
- id: string;
58
- merchantId: string;
59
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
60
- createdAt: string;
61
- sessionId: string | null;
62
- subscriptionId: string | null;
63
- customerId: string | null;
64
57
  amount: string;
65
58
  currency: "USDC" | "EURC";
59
+ customerId: string | null;
60
+ merchantId: string;
61
+ id: string;
62
+ sessionId: string | null;
63
+ createdAt: string;
66
64
  feeAmount: string;
67
65
  netAmount: string;
68
66
  onchainTxHash: string;
67
+ payerAddress: string;
68
+ subscriptionId: string | null;
69
+ kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
69
70
  subscriptionChargeId: string | null;
70
71
  refundId: string | null;
71
- payerAddress: string;
72
72
  merchantAddress: string;
73
73
  blockNumber: number;
74
74
  blockTimestamp: string;
@@ -34,41 +34,41 @@ declare const transactionSchema: z.ZodObject<{
34
34
  createdAt: z.ZodString;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  status: "confirmed" | "failed" | "pending";
37
- id: string;
38
- merchantId: string;
39
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
40
- createdAt: string;
41
- sessionId: string | null;
42
- subscriptionId: string | null;
43
- customerId: string | null;
44
37
  amount: string;
45
38
  currency: "USDC" | "EURC";
39
+ customerId: string | null;
40
+ merchantId: string;
41
+ id: string;
42
+ sessionId: string | null;
43
+ createdAt: string;
46
44
  feeAmount: string;
47
45
  netAmount: string;
48
46
  onchainTxHash: string;
47
+ payerAddress: string;
48
+ subscriptionId: string | null;
49
+ kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
49
50
  subscriptionChargeId: string | null;
50
51
  refundId: string | null;
51
- payerAddress: string;
52
52
  merchantAddress: string;
53
53
  blockNumber: number;
54
54
  blockTimestamp: string;
55
55
  }, {
56
56
  status: "confirmed" | "failed" | "pending";
57
- id: string;
58
- merchantId: string;
59
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
60
- createdAt: string;
61
- sessionId: string | null;
62
- subscriptionId: string | null;
63
- customerId: string | null;
64
57
  amount: string;
65
58
  currency: "USDC" | "EURC";
59
+ customerId: string | null;
60
+ merchantId: string;
61
+ id: string;
62
+ sessionId: string | null;
63
+ createdAt: string;
66
64
  feeAmount: string;
67
65
  netAmount: string;
68
66
  onchainTxHash: string;
67
+ payerAddress: string;
68
+ subscriptionId: string | null;
69
+ kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
69
70
  subscriptionChargeId: string | null;
70
71
  refundId: string | null;
71
- payerAddress: string;
72
72
  merchantAddress: string;
73
73
  blockNumber: number;
74
74
  blockTimestamp: string;