@strimz/shared-types 0.17.0 → 0.18.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.
Files changed (43) hide show
  1. package/dist/analytics.d.cts +141 -141
  2. package/dist/analytics.d.ts +141 -141
  3. package/dist/api-keys.d.cts +14 -14
  4. package/dist/api-keys.d.ts +14 -14
  5. package/dist/compliance.d.cts +8 -8
  6. package/dist/compliance.d.ts +8 -8
  7. package/dist/customers.d.cts +7 -7
  8. package/dist/customers.d.ts +7 -7
  9. package/dist/events.cjs +4 -0
  10. package/dist/events.cjs.map +1 -1
  11. package/dist/events.d.cts +1681 -1486
  12. package/dist/events.d.ts +1681 -1486
  13. package/dist/events.js +4 -1
  14. package/dist/events.js.map +1 -1
  15. package/dist/index.cjs +4 -0
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +7 -7
  18. package/dist/index.d.ts +7 -7
  19. package/dist/index.js +4 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/invoices.d.cts +12 -12
  22. package/dist/invoices.d.ts +12 -12
  23. package/dist/merchants.d.cts +26 -26
  24. package/dist/merchants.d.ts +26 -26
  25. package/dist/payment-sessions.d.cts +16 -16
  26. package/dist/payment-sessions.d.ts +16 -16
  27. package/dist/refunds.d.cts +36 -36
  28. package/dist/refunds.d.ts +36 -36
  29. package/dist/storefronts.d.cts +13 -13
  30. package/dist/storefronts.d.ts +13 -13
  31. package/dist/subscriptions.d.cts +32 -32
  32. package/dist/subscriptions.d.ts +32 -32
  33. package/dist/transactions.d.cts +10 -10
  34. package/dist/transactions.d.ts +10 -10
  35. package/dist/webhooks.cjs +1 -0
  36. package/dist/webhooks.cjs.map +1 -1
  37. package/dist/webhooks.d.cts +46 -46
  38. package/dist/webhooks.d.ts +46 -46
  39. package/dist/webhooks.js +1 -0
  40. package/dist/webhooks.js.map +1 -1
  41. package/package.json +2 -2
  42. package/src/events.ts +4 -0
  43. package/src/webhooks.ts +1 -0
@@ -29,12 +29,12 @@ declare const refundSchema: z.ZodObject<{
29
29
  completedAt: z.ZodNullable<z.ZodString>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
32
- id: string;
33
- merchantId: string;
34
- createdAt: string;
32
+ amount: string;
35
33
  currency: "USDC" | "EURC";
34
+ merchantId: string;
35
+ id: string;
36
36
  note: string | null;
37
- amount: string;
37
+ createdAt: string;
38
38
  transactionId: string;
39
39
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
40
40
  payerAddress: string;
@@ -44,12 +44,12 @@ declare const refundSchema: z.ZodObject<{
44
44
  completedAt: string | null;
45
45
  }, {
46
46
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
47
- id: string;
48
- merchantId: string;
49
- createdAt: string;
47
+ amount: string;
50
48
  currency: "USDC" | "EURC";
49
+ merchantId: string;
50
+ id: string;
51
51
  note: string | null;
52
- amount: string;
52
+ createdAt: string;
53
53
  transactionId: string;
54
54
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
55
55
  payerAddress: string;
@@ -100,15 +100,15 @@ declare const refundSigningInstructionsSchema: z.ZodObject<{
100
100
  amount: z.ZodString;
101
101
  note: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
- note: string;
104
103
  amount: string;
105
- token: string;
106
104
  to: string;
107
- }, {
108
105
  note: string;
109
- amount: string;
110
106
  token: string;
107
+ }, {
108
+ amount: string;
111
109
  to: string;
110
+ note: string;
111
+ token: string;
112
112
  }>;
113
113
  type RefundSigningInstructions = z.infer<typeof refundSigningInstructionsSchema>;
114
114
  declare const refundCreateOutputSchema: z.ZodObject<{
@@ -129,12 +129,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
129
129
  completedAt: z.ZodNullable<z.ZodString>;
130
130
  }, "strip", z.ZodTypeAny, {
131
131
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
132
- id: string;
133
- merchantId: string;
134
- createdAt: string;
132
+ amount: string;
135
133
  currency: "USDC" | "EURC";
134
+ merchantId: string;
135
+ id: string;
136
136
  note: string | null;
137
- amount: string;
137
+ createdAt: string;
138
138
  transactionId: string;
139
139
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
140
140
  payerAddress: string;
@@ -144,12 +144,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
144
144
  completedAt: string | null;
145
145
  }, {
146
146
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
147
- id: string;
148
- merchantId: string;
149
- createdAt: string;
147
+ amount: string;
150
148
  currency: "USDC" | "EURC";
149
+ merchantId: string;
150
+ id: string;
151
151
  note: string | null;
152
- amount: string;
152
+ createdAt: string;
153
153
  transactionId: string;
154
154
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
155
155
  payerAddress: string;
@@ -164,25 +164,25 @@ declare const refundCreateOutputSchema: z.ZodObject<{
164
164
  amount: z.ZodString;
165
165
  note: z.ZodString;
166
166
  }, "strip", z.ZodTypeAny, {
167
- note: string;
168
167
  amount: string;
169
- token: string;
170
168
  to: string;
171
- }, {
172
169
  note: string;
173
- amount: string;
174
170
  token: string;
171
+ }, {
172
+ amount: string;
175
173
  to: string;
174
+ note: string;
175
+ token: string;
176
176
  }>;
177
177
  }, "strip", z.ZodTypeAny, {
178
178
  refund: {
179
179
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
180
- id: string;
181
- merchantId: string;
182
- createdAt: string;
180
+ amount: string;
183
181
  currency: "USDC" | "EURC";
182
+ merchantId: string;
183
+ id: string;
184
184
  note: string | null;
185
- amount: string;
185
+ createdAt: string;
186
186
  transactionId: string;
187
187
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
188
188
  payerAddress: string;
@@ -192,20 +192,20 @@ declare const refundCreateOutputSchema: z.ZodObject<{
192
192
  completedAt: string | null;
193
193
  };
194
194
  signingInstructions: {
195
- note: string;
196
195
  amount: string;
197
- token: string;
198
196
  to: string;
197
+ note: string;
198
+ token: string;
199
199
  };
200
200
  }, {
201
201
  refund: {
202
202
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
203
- id: string;
204
- merchantId: string;
205
- createdAt: string;
203
+ amount: string;
206
204
  currency: "USDC" | "EURC";
205
+ merchantId: string;
206
+ id: string;
207
207
  note: string | null;
208
- amount: string;
208
+ createdAt: string;
209
209
  transactionId: string;
210
210
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
211
211
  payerAddress: string;
@@ -215,10 +215,10 @@ declare const refundCreateOutputSchema: z.ZodObject<{
215
215
  completedAt: string | null;
216
216
  };
217
217
  signingInstructions: {
218
- note: string;
219
218
  amount: string;
220
- token: string;
221
219
  to: string;
220
+ note: string;
221
+ token: string;
222
222
  };
223
223
  }>;
224
224
  type RefundCreateOutput = z.infer<typeof refundCreateOutputSchema>;
package/dist/refunds.d.ts CHANGED
@@ -29,12 +29,12 @@ declare const refundSchema: z.ZodObject<{
29
29
  completedAt: z.ZodNullable<z.ZodString>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
32
- id: string;
33
- merchantId: string;
34
- createdAt: string;
32
+ amount: string;
35
33
  currency: "USDC" | "EURC";
34
+ merchantId: string;
35
+ id: string;
36
36
  note: string | null;
37
- amount: string;
37
+ createdAt: string;
38
38
  transactionId: string;
39
39
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
40
40
  payerAddress: string;
@@ -44,12 +44,12 @@ declare const refundSchema: z.ZodObject<{
44
44
  completedAt: string | null;
45
45
  }, {
46
46
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
47
- id: string;
48
- merchantId: string;
49
- createdAt: string;
47
+ amount: string;
50
48
  currency: "USDC" | "EURC";
49
+ merchantId: string;
50
+ id: string;
51
51
  note: string | null;
52
- amount: string;
52
+ createdAt: string;
53
53
  transactionId: string;
54
54
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
55
55
  payerAddress: string;
@@ -100,15 +100,15 @@ declare const refundSigningInstructionsSchema: z.ZodObject<{
100
100
  amount: z.ZodString;
101
101
  note: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
- note: string;
104
103
  amount: string;
105
- token: string;
106
104
  to: string;
107
- }, {
108
105
  note: string;
109
- amount: string;
110
106
  token: string;
107
+ }, {
108
+ amount: string;
111
109
  to: string;
110
+ note: string;
111
+ token: string;
112
112
  }>;
113
113
  type RefundSigningInstructions = z.infer<typeof refundSigningInstructionsSchema>;
114
114
  declare const refundCreateOutputSchema: z.ZodObject<{
@@ -129,12 +129,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
129
129
  completedAt: z.ZodNullable<z.ZodString>;
130
130
  }, "strip", z.ZodTypeAny, {
131
131
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
132
- id: string;
133
- merchantId: string;
134
- createdAt: string;
132
+ amount: string;
135
133
  currency: "USDC" | "EURC";
134
+ merchantId: string;
135
+ id: string;
136
136
  note: string | null;
137
- amount: string;
137
+ createdAt: string;
138
138
  transactionId: string;
139
139
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
140
140
  payerAddress: string;
@@ -144,12 +144,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
144
144
  completedAt: string | null;
145
145
  }, {
146
146
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
147
- id: string;
148
- merchantId: string;
149
- createdAt: string;
147
+ amount: string;
150
148
  currency: "USDC" | "EURC";
149
+ merchantId: string;
150
+ id: string;
151
151
  note: string | null;
152
- amount: string;
152
+ createdAt: string;
153
153
  transactionId: string;
154
154
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
155
155
  payerAddress: string;
@@ -164,25 +164,25 @@ declare const refundCreateOutputSchema: z.ZodObject<{
164
164
  amount: z.ZodString;
165
165
  note: z.ZodString;
166
166
  }, "strip", z.ZodTypeAny, {
167
- note: string;
168
167
  amount: string;
169
- token: string;
170
168
  to: string;
171
- }, {
172
169
  note: string;
173
- amount: string;
174
170
  token: string;
171
+ }, {
172
+ amount: string;
175
173
  to: string;
174
+ note: string;
175
+ token: string;
176
176
  }>;
177
177
  }, "strip", z.ZodTypeAny, {
178
178
  refund: {
179
179
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
180
- id: string;
181
- merchantId: string;
182
- createdAt: string;
180
+ amount: string;
183
181
  currency: "USDC" | "EURC";
182
+ merchantId: string;
183
+ id: string;
184
184
  note: string | null;
185
- amount: string;
185
+ createdAt: string;
186
186
  transactionId: string;
187
187
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
188
188
  payerAddress: string;
@@ -192,20 +192,20 @@ declare const refundCreateOutputSchema: z.ZodObject<{
192
192
  completedAt: string | null;
193
193
  };
194
194
  signingInstructions: {
195
- note: string;
196
195
  amount: string;
197
- token: string;
198
196
  to: string;
197
+ note: string;
198
+ token: string;
199
199
  };
200
200
  }, {
201
201
  refund: {
202
202
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
203
- id: string;
204
- merchantId: string;
205
- createdAt: string;
203
+ amount: string;
206
204
  currency: "USDC" | "EURC";
205
+ merchantId: string;
206
+ id: string;
207
207
  note: string | null;
208
- amount: string;
208
+ createdAt: string;
209
209
  transactionId: string;
210
210
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
211
211
  payerAddress: string;
@@ -215,10 +215,10 @@ declare const refundCreateOutputSchema: z.ZodObject<{
215
215
  completedAt: string | null;
216
216
  };
217
217
  signingInstructions: {
218
- note: string;
219
218
  amount: string;
220
- token: string;
221
219
  to: string;
220
+ note: string;
221
+ token: string;
222
222
  };
223
223
  }>;
224
224
  type RefundCreateOutput = z.infer<typeof refundCreateOutputSchema>;
@@ -21,10 +21,10 @@ declare const storefrontSchema: z.ZodObject<{
21
21
  updatedAt: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  status: "draft" | "archived" | "published";
24
- id: string;
25
24
  merchantId: string;
26
- createdAt: string;
27
25
  description: string | null;
26
+ id: string;
27
+ createdAt: string;
28
28
  updatedAt: string;
29
29
  name: string;
30
30
  logoUrl: string | null;
@@ -34,10 +34,10 @@ declare const storefrontSchema: z.ZodObject<{
34
34
  socialLinks: string[];
35
35
  }, {
36
36
  status: "draft" | "archived" | "published";
37
- id: string;
38
37
  merchantId: string;
39
- createdAt: string;
40
38
  description: string | null;
39
+ id: string;
40
+ createdAt: string;
41
41
  updatedAt: string;
42
42
  name: string;
43
43
  logoUrl: string | null;
@@ -101,10 +101,10 @@ declare const storefrontProductSchema: z.ZodObject<{
101
101
  updatedAt: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  type: "subscription" | "one_time";
104
+ currency: "USDC" | "EURC";
105
+ description: string | null;
104
106
  id: string;
105
107
  createdAt: string;
106
- description: string | null;
107
- currency: "USDC" | "EURC";
108
108
  updatedAt: string;
109
109
  name: string;
110
110
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
@@ -118,10 +118,10 @@ declare const storefrontProductSchema: z.ZodObject<{
118
118
  sortOrder: number;
119
119
  }, {
120
120
  type: "subscription" | "one_time";
121
+ currency: "USDC" | "EURC";
122
+ description: string | null;
121
123
  id: string;
122
124
  createdAt: string;
123
- description: string | null;
124
- currency: "USDC" | "EURC";
125
125
  updatedAt: string;
126
126
  name: string;
127
127
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
@@ -137,8 +137,8 @@ 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
- description: z.ZodNullable<z.ZodString>;
141
140
  currency: z.ZodEnum<["USDC", "EURC"]>;
141
+ description: z.ZodNullable<z.ZodString>;
142
142
  name: z.ZodString;
143
143
  interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
144
144
  intervalCount: z.ZodNullable<z.ZodNumber>;
@@ -151,8 +151,8 @@ 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
- description: string | null;
155
154
  currency: "USDC" | "EURC";
155
+ description: string | null;
156
156
  name: string;
157
157
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
158
158
  intervalCount: number | null;
@@ -164,8 +164,8 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
164
164
  imageUrl?: string | undefined;
165
165
  }, {
166
166
  type: "subscription" | "one_time";
167
- description: string | null;
168
167
  currency: "USDC" | "EURC";
168
+ description: string | null;
169
169
  name: string;
170
170
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
171
171
  intervalCount: number | null;
@@ -177,8 +177,8 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
177
177
  sortOrder?: number | undefined;
178
178
  }>, {
179
179
  type: "subscription" | "one_time";
180
- description: string | null;
181
180
  currency: "USDC" | "EURC";
181
+ description: string | null;
182
182
  name: string;
183
183
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
184
184
  intervalCount: number | null;
@@ -190,8 +190,8 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
190
190
  imageUrl?: string | undefined;
191
191
  }, {
192
192
  type: "subscription" | "one_time";
193
- description: string | null;
194
193
  currency: "USDC" | "EURC";
194
+ description: string | null;
195
195
  name: string;
196
196
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
197
197
  intervalCount: number | null;
@@ -21,10 +21,10 @@ declare const storefrontSchema: z.ZodObject<{
21
21
  updatedAt: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  status: "draft" | "archived" | "published";
24
- id: string;
25
24
  merchantId: string;
26
- createdAt: string;
27
25
  description: string | null;
26
+ id: string;
27
+ createdAt: string;
28
28
  updatedAt: string;
29
29
  name: string;
30
30
  logoUrl: string | null;
@@ -34,10 +34,10 @@ declare const storefrontSchema: z.ZodObject<{
34
34
  socialLinks: string[];
35
35
  }, {
36
36
  status: "draft" | "archived" | "published";
37
- id: string;
38
37
  merchantId: string;
39
- createdAt: string;
40
38
  description: string | null;
39
+ id: string;
40
+ createdAt: string;
41
41
  updatedAt: string;
42
42
  name: string;
43
43
  logoUrl: string | null;
@@ -101,10 +101,10 @@ declare const storefrontProductSchema: z.ZodObject<{
101
101
  updatedAt: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  type: "subscription" | "one_time";
104
+ currency: "USDC" | "EURC";
105
+ description: string | null;
104
106
  id: string;
105
107
  createdAt: string;
106
- description: string | null;
107
- currency: "USDC" | "EURC";
108
108
  updatedAt: string;
109
109
  name: string;
110
110
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
@@ -118,10 +118,10 @@ declare const storefrontProductSchema: z.ZodObject<{
118
118
  sortOrder: number;
119
119
  }, {
120
120
  type: "subscription" | "one_time";
121
+ currency: "USDC" | "EURC";
122
+ description: string | null;
121
123
  id: string;
122
124
  createdAt: string;
123
- description: string | null;
124
- currency: "USDC" | "EURC";
125
125
  updatedAt: string;
126
126
  name: string;
127
127
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
@@ -137,8 +137,8 @@ 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
- description: z.ZodNullable<z.ZodString>;
141
140
  currency: z.ZodEnum<["USDC", "EURC"]>;
141
+ description: z.ZodNullable<z.ZodString>;
142
142
  name: z.ZodString;
143
143
  interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
144
144
  intervalCount: z.ZodNullable<z.ZodNumber>;
@@ -151,8 +151,8 @@ 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
- description: string | null;
155
154
  currency: "USDC" | "EURC";
155
+ description: string | null;
156
156
  name: string;
157
157
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
158
158
  intervalCount: number | null;
@@ -164,8 +164,8 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
164
164
  imageUrl?: string | undefined;
165
165
  }, {
166
166
  type: "subscription" | "one_time";
167
- description: string | null;
168
167
  currency: "USDC" | "EURC";
168
+ description: string | null;
169
169
  name: string;
170
170
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
171
171
  intervalCount: number | null;
@@ -177,8 +177,8 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
177
177
  sortOrder?: number | undefined;
178
178
  }>, {
179
179
  type: "subscription" | "one_time";
180
- description: string | null;
181
180
  currency: "USDC" | "EURC";
181
+ description: string | null;
182
182
  name: string;
183
183
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
184
184
  intervalCount: number | null;
@@ -190,8 +190,8 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
190
190
  imageUrl?: string | undefined;
191
191
  }, {
192
192
  type: "subscription" | "one_time";
193
- description: string | null;
194
193
  currency: "USDC" | "EURC";
194
+ description: string | null;
195
195
  name: string;
196
196
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
197
197
  intervalCount: number | null;
@@ -51,15 +51,15 @@ declare const subscriptionPlanSchema: z.ZodObject<{
51
51
  updatedAt: z.ZodString;
52
52
  }, "strip", z.ZodTypeAny, {
53
53
  status: "active" | "archived";
54
- id: string;
54
+ amount: string;
55
+ currency: "USDC" | "EURC";
55
56
  merchantId: string;
56
- createdAt: string;
57
57
  description: string | null;
58
- currency: "USDC" | "EURC";
58
+ id: string;
59
+ createdAt: string;
59
60
  updatedAt: string;
60
61
  chainMerchantId: string | null;
61
62
  tokenAddress: string | null;
62
- amount: string;
63
63
  successUrl: string | null;
64
64
  cancelUrl: string | null;
65
65
  metadata: Record<string, string | number | boolean | null>;
@@ -70,15 +70,15 @@ declare const subscriptionPlanSchema: z.ZodObject<{
70
70
  trialPeriodDays: number | null;
71
71
  }, {
72
72
  status: "active" | "archived";
73
- id: string;
73
+ amount: string;
74
+ currency: "USDC" | "EURC";
74
75
  merchantId: string;
75
- createdAt: string;
76
76
  description: string | null;
77
- currency: "USDC" | "EURC";
77
+ id: string;
78
+ createdAt: string;
78
79
  updatedAt: string;
79
80
  chainMerchantId: string | null;
80
81
  tokenAddress: string | null;
81
- amount: string;
82
82
  successUrl: string | null;
83
83
  cancelUrl: string | null;
84
84
  intervalSeconds: number;
@@ -101,8 +101,8 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
101
101
  cancelUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
102
102
  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>>>>;
103
103
  }, "strip", z.ZodTypeAny, {
104
- currency: "USDC" | "EURC";
105
104
  amount: string;
105
+ currency: "USDC" | "EURC";
106
106
  name: string;
107
107
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
108
108
  intervalCount: number;
@@ -112,8 +112,8 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
112
112
  metadata?: Record<string, string | number | boolean | null> | undefined;
113
113
  trialPeriodDays?: number | undefined;
114
114
  }, {
115
- currency: "USDC" | "EURC";
116
115
  amount: string;
116
+ currency: "USDC" | "EURC";
117
117
  name: string;
118
118
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
119
119
  description?: string | undefined;
@@ -155,14 +155,14 @@ declare const subscriptionResultMessageSchema: z.ZodDiscriminatedUnion<"type", [
155
155
  txHash: z.ZodString;
156
156
  }, "strip", z.ZodTypeAny, {
157
157
  type: "strimz:subscription:success";
158
- subscriptionId: string | null;
159
158
  txHash: string;
160
159
  planId: string;
160
+ subscriptionId: string | null;
161
161
  }, {
162
162
  type: "strimz:subscription:success";
163
- subscriptionId: string | null;
164
163
  txHash: string;
165
164
  planId: string;
165
+ subscriptionId: string | null;
166
166
  }>, z.ZodObject<{
167
167
  type: z.ZodLiteral<"strimz:subscription:cancel">;
168
168
  planId: z.ZodString;
@@ -213,14 +213,14 @@ declare const subscriptionSchema: z.ZodObject<{
213
213
  createdAt: z.ZodString;
214
214
  updatedAt: z.ZodString;
215
215
  }, "strip", z.ZodTypeAny, {
216
- status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
217
- id: string;
216
+ status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
217
+ amount: string;
218
+ currency: "USDC" | "EURC";
219
+ customerId: string;
218
220
  merchantId: string;
221
+ id: string;
219
222
  createdAt: string;
220
- currency: "USDC" | "EURC";
221
223
  updatedAt: string;
222
- customerId: string;
223
- amount: string;
224
224
  metadata: Record<string, string | number | boolean | null>;
225
225
  payerAddress: string;
226
226
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
@@ -234,14 +234,14 @@ declare const subscriptionSchema: z.ZodObject<{
234
234
  gracePeriodHours: number;
235
235
  cancelledAt: string | null;
236
236
  }, {
237
- status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
238
- id: string;
237
+ status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
238
+ amount: string;
239
+ currency: "USDC" | "EURC";
240
+ customerId: string;
239
241
  merchantId: string;
242
+ id: string;
240
243
  createdAt: string;
241
- currency: "USDC" | "EURC";
242
244
  updatedAt: string;
243
- customerId: string;
244
- amount: string;
245
245
  payerAddress: string;
246
246
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
247
247
  intervalCount: number;
@@ -261,11 +261,11 @@ declare const subscriptionStatusResultSchema: z.ZodObject<{
261
261
  active: z.ZodBoolean;
262
262
  subscriptionId: z.ZodNullable<z.ZodString>;
263
263
  }, "strip", z.ZodTypeAny, {
264
- subscriptionId: string | null;
265
264
  active: boolean;
266
- }, {
267
265
  subscriptionId: string | null;
266
+ }, {
268
267
  active: boolean;
268
+ subscriptionId: string | null;
269
269
  }>;
270
270
  type SubscriptionStatusResult = z.infer<typeof subscriptionStatusResultSchema>;
271
271
  declare const subscriptionEnrolmentTermsSchema: z.ZodObject<{
@@ -318,15 +318,15 @@ declare const subscriptionChargeSchema: z.ZodObject<{
318
318
  updatedAt: z.ZodString;
319
319
  }, "strip", z.ZodTypeAny, {
320
320
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
321
- id: string;
321
+ amount: string;
322
+ currency: "USDC" | "EURC";
322
323
  merchantId: string;
323
- subscriptionId: string;
324
+ id: string;
324
325
  createdAt: string;
325
- currency: "USDC" | "EURC";
326
326
  updatedAt: string;
327
- amount: string;
328
327
  onchainTxHash: string | null;
329
328
  failureReason: string | null;
329
+ subscriptionId: string;
330
330
  chargeAttemptId: string;
331
331
  periodStartAt: string;
332
332
  periodEndAt: string;
@@ -336,15 +336,15 @@ declare const subscriptionChargeSchema: z.ZodObject<{
336
336
  executedAt: string | null;
337
337
  }, {
338
338
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
339
- id: string;
339
+ amount: string;
340
+ currency: "USDC" | "EURC";
340
341
  merchantId: string;
341
- subscriptionId: string;
342
+ id: string;
342
343
  createdAt: string;
343
- currency: "USDC" | "EURC";
344
344
  updatedAt: string;
345
- amount: string;
346
345
  onchainTxHash: string | null;
347
346
  failureReason: string | null;
347
+ subscriptionId: string;
348
348
  chargeAttemptId: string;
349
349
  periodStartAt: string;
350
350
  periodEndAt: string;