@strimz/shared-types 0.7.0 → 0.9.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 (52) hide show
  1. package/dist/analytics.cjs +558 -0
  2. package/dist/analytics.cjs.map +1 -0
  3. package/dist/analytics.d.cts +1719 -0
  4. package/dist/analytics.d.ts +1719 -0
  5. package/dist/analytics.js +530 -0
  6. package/dist/analytics.js.map +1 -0
  7. package/dist/api-keys.d.cts +20 -20
  8. package/dist/api-keys.d.ts +20 -20
  9. package/dist/compliance.d.cts +6 -6
  10. package/dist/compliance.d.ts +6 -6
  11. package/dist/customers.d.cts +7 -7
  12. package/dist/customers.d.ts +7 -7
  13. package/dist/events.cjs +0 -10
  14. package/dist/events.cjs.map +1 -1
  15. package/dist/events.d.cts +1885 -1885
  16. package/dist/events.d.ts +1885 -1885
  17. package/dist/events.js +0 -10
  18. package/dist/events.js.map +1 -1
  19. package/dist/index.cjs +216 -11
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +16 -15
  22. package/dist/index.d.ts +16 -15
  23. package/dist/index.js +190 -11
  24. package/dist/index.js.map +1 -1
  25. package/dist/invoices.d.cts +16 -16
  26. package/dist/invoices.d.ts +16 -16
  27. package/dist/merchants.d.cts +29 -29
  28. package/dist/merchants.d.ts +29 -29
  29. package/dist/payment-sessions.d.cts +19 -19
  30. package/dist/payment-sessions.d.ts +19 -19
  31. package/dist/refunds.d.cts +50 -50
  32. package/dist/refunds.d.ts +50 -50
  33. package/dist/storefronts.cjs +0 -10
  34. package/dist/storefronts.cjs.map +1 -1
  35. package/dist/storefronts.d.cts +24 -24
  36. package/dist/storefronts.d.ts +24 -24
  37. package/dist/storefronts.js +0 -10
  38. package/dist/storefronts.js.map +1 -1
  39. package/dist/subscriptions.cjs +0 -11
  40. package/dist/subscriptions.cjs.map +1 -1
  41. package/dist/subscriptions.d.cts +43 -81
  42. package/dist/subscriptions.d.ts +43 -81
  43. package/dist/subscriptions.js +1 -11
  44. package/dist/subscriptions.js.map +1 -1
  45. package/dist/transactions.d.cts +16 -16
  46. package/dist/transactions.d.ts +16 -16
  47. package/dist/webhooks.d.cts +28 -28
  48. package/dist/webhooks.d.ts +28 -28
  49. package/package.json +6 -1
  50. package/src/analytics.ts +275 -0
  51. package/src/index.ts +1 -0
  52. package/src/subscriptions.ts +0 -13
@@ -53,13 +53,10 @@ declare const invoiceSchema: z.ZodObject<{
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  number: string;
55
55
  status: "void" | "draft" | "sent" | "paid" | "overdue";
56
- id: string;
57
- merchantId: string;
58
- createdAt: string;
59
- sessionId: string | null;
56
+ total: string;
60
57
  currency: "USDC" | "EURC";
61
- updatedAt: string;
62
- note: string | null;
58
+ merchantId: string;
59
+ id: string;
63
60
  customerName: string | null;
64
61
  customerEmail: string | null;
65
62
  lineItems: [{
@@ -72,20 +69,20 @@ declare const invoiceSchema: z.ZodObject<{
72
69
  unitAmount: string;
73
70
  }[]];
74
71
  subtotal: string;
75
- total: string;
72
+ note: string | null;
73
+ sessionId: string | null;
76
74
  dueAt: string;
77
75
  paidAt: string | null;
78
76
  sentAt: string | null;
77
+ createdAt: string;
78
+ updatedAt: string;
79
79
  }, {
80
80
  number: string;
81
81
  status: "void" | "draft" | "sent" | "paid" | "overdue";
82
- id: string;
83
- merchantId: string;
84
- createdAt: string;
85
- sessionId: string | null;
82
+ total: string;
86
83
  currency: "USDC" | "EURC";
87
- updatedAt: string;
88
- note: string | null;
84
+ merchantId: string;
85
+ id: string;
89
86
  customerName: string | null;
90
87
  customerEmail: string | null;
91
88
  lineItems: [{
@@ -98,10 +95,13 @@ declare const invoiceSchema: z.ZodObject<{
98
95
  unitAmount: string;
99
96
  }[]];
100
97
  subtotal: string;
101
- total: string;
98
+ note: string | null;
99
+ sessionId: string | null;
102
100
  dueAt: string;
103
101
  paidAt: string | null;
104
102
  sentAt: string | null;
103
+ createdAt: string;
104
+ updatedAt: string;
105
105
  }>;
106
106
  type Invoice = z.infer<typeof invoiceSchema>;
107
107
  declare const createInvoiceInputSchema: z.ZodObject<{
@@ -135,9 +135,9 @@ declare const createInvoiceInputSchema: z.ZodObject<{
135
135
  unitAmount: string;
136
136
  }[]];
137
137
  dueInDays: number;
138
- note?: string | undefined;
139
138
  customerName?: string | undefined;
140
139
  customerEmail?: string | undefined;
140
+ note?: string | undefined;
141
141
  }, {
142
142
  currency: "USDC" | "EURC";
143
143
  lineItems: [{
@@ -149,9 +149,9 @@ declare const createInvoiceInputSchema: z.ZodObject<{
149
149
  quantity: number;
150
150
  unitAmount: string;
151
151
  }[]];
152
- note?: string | undefined;
153
152
  customerName?: string | undefined;
154
153
  customerEmail?: string | undefined;
154
+ note?: string | undefined;
155
155
  dueInDays?: number | undefined;
156
156
  }>;
157
157
  type CreateInvoiceInput = z.input<typeof createInvoiceInputSchema>;
@@ -32,14 +32,14 @@ declare const merchantSchema: z.ZodObject<{
32
32
  updatedAt: z.ZodString;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  status: "active" | "suspended" | "closed";
35
+ businessName: string;
36
+ email: string;
35
37
  id: string;
36
38
  createdAt: string;
37
- walletAddress: string | null;
38
- email: string;
39
- metadata: Record<string, string | number | boolean | null>;
40
39
  updatedAt: string;
40
+ metadata: Record<string, string | number | boolean | null>;
41
+ walletAddress: string | null;
41
42
  onchainMerchantId: number | null;
42
- businessName: string;
43
43
  tier: "free" | "growth" | "business" | "enterprise";
44
44
  payoutAddress: string | null;
45
45
  onboardingCompleted: boolean;
@@ -50,13 +50,13 @@ declare const merchantSchema: z.ZodObject<{
50
50
  whitelabelEnabled: boolean;
51
51
  }, {
52
52
  status: "active" | "suspended" | "closed";
53
+ businessName: string;
54
+ email: string;
53
55
  id: string;
54
56
  createdAt: string;
55
- walletAddress: string | null;
56
- email: string;
57
57
  updatedAt: string;
58
+ walletAddress: string | null;
58
59
  onchainMerchantId: number | null;
59
- businessName: string;
60
60
  tier: "free" | "growth" | "business" | "enterprise";
61
61
  payoutAddress: string | null;
62
62
  onboardingCompleted: boolean;
@@ -75,14 +75,14 @@ declare const createMerchantInputSchema: z.ZodObject<{
75
75
  countryCode: z.ZodOptional<z.ZodString>;
76
76
  websiteUrl: z.ZodOptional<z.ZodString>;
77
77
  }, "strip", z.ZodTypeAny, {
78
- email: string;
79
78
  businessName: string;
79
+ email: string;
80
80
  password: string;
81
81
  countryCode?: string | undefined;
82
82
  websiteUrl?: string | undefined;
83
83
  }, {
84
- email: string;
85
84
  businessName: string;
85
+ email: string;
86
86
  password: string;
87
87
  countryCode?: string | undefined;
88
88
  websiteUrl?: string | undefined;
@@ -126,8 +126,8 @@ declare const updateMerchantInputSchema: z.ZodObject<{
126
126
  subscriptionCharged?: boolean | undefined;
127
127
  }>>;
128
128
  }, "strip", z.ZodTypeAny, {
129
- metadata?: Record<string, string | number | boolean | null> | undefined;
130
129
  businessName?: string | undefined;
130
+ metadata?: Record<string, string | number | boolean | null> | undefined;
131
131
  payoutAddress?: string | undefined;
132
132
  defaultCurrency?: "USDC" | "EURC" | undefined;
133
133
  countryCode?: string | null | undefined;
@@ -138,8 +138,8 @@ declare const updateMerchantInputSchema: z.ZodObject<{
138
138
  subscriptionCharged?: boolean | undefined;
139
139
  } | undefined;
140
140
  }, {
141
- metadata?: Record<string, string | number | boolean | null> | undefined;
142
141
  businessName?: string | undefined;
142
+ metadata?: Record<string, string | number | boolean | null> | undefined;
143
143
  payoutAddress?: string | undefined;
144
144
  defaultCurrency?: "USDC" | "EURC" | undefined;
145
145
  countryCode?: string | null | undefined;
@@ -204,14 +204,14 @@ declare const merchantPublicBrandSchema: z.ZodObject<{
204
204
  logoUrl: z.ZodNullable<z.ZodString>;
205
205
  walletAddress: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
206
206
  }, "strip", z.ZodTypeAny, {
207
+ businessName: string;
207
208
  id: string;
208
209
  walletAddress: string | null;
209
- businessName: string;
210
210
  logoUrl: string | null;
211
211
  }, {
212
+ businessName: string;
212
213
  id: string;
213
214
  walletAddress: string | null;
214
- businessName: string;
215
215
  logoUrl: string | null;
216
216
  }>;
217
217
  type MerchantPublicBrand = z.infer<typeof merchantPublicBrandSchema>;
@@ -288,16 +288,16 @@ declare const merchantMemberSchema: z.ZodObject<{
288
288
  invitedAt: z.ZodString;
289
289
  acceptedAt: z.ZodNullable<z.ZodString>;
290
290
  }, "strip", z.ZodTypeAny, {
291
- id: string;
292
291
  merchantId: string;
293
292
  email: string;
293
+ id: string;
294
294
  role: "owner" | "admin" | "developer" | "read_only";
295
295
  invitedAt: string;
296
296
  acceptedAt: string | null;
297
297
  }, {
298
- id: string;
299
298
  merchantId: string;
300
299
  email: string;
300
+ id: string;
301
301
  role: "owner" | "admin" | "developer" | "read_only";
302
302
  invitedAt: string;
303
303
  acceptedAt: string | null;
@@ -350,14 +350,14 @@ declare const loginOutputSchema: z.ZodObject<{
350
350
  updatedAt: z.ZodString;
351
351
  }, "strip", z.ZodTypeAny, {
352
352
  status: "active" | "suspended" | "closed";
353
+ businessName: string;
354
+ email: string;
353
355
  id: string;
354
356
  createdAt: string;
355
- walletAddress: string | null;
356
- email: string;
357
- metadata: Record<string, string | number | boolean | null>;
358
357
  updatedAt: string;
358
+ metadata: Record<string, string | number | boolean | null>;
359
+ walletAddress: string | null;
359
360
  onchainMerchantId: number | null;
360
- businessName: string;
361
361
  tier: "free" | "growth" | "business" | "enterprise";
362
362
  payoutAddress: string | null;
363
363
  onboardingCompleted: boolean;
@@ -368,13 +368,13 @@ declare const loginOutputSchema: z.ZodObject<{
368
368
  whitelabelEnabled: boolean;
369
369
  }, {
370
370
  status: "active" | "suspended" | "closed";
371
+ businessName: string;
372
+ email: string;
371
373
  id: string;
372
374
  createdAt: string;
373
- walletAddress: string | null;
374
- email: string;
375
375
  updatedAt: string;
376
+ walletAddress: string | null;
376
377
  onchainMerchantId: number | null;
377
- businessName: string;
378
378
  tier: "free" | "growth" | "business" | "enterprise";
379
379
  payoutAddress: string | null;
380
380
  onboardingCompleted: boolean;
@@ -390,14 +390,14 @@ declare const loginOutputSchema: z.ZodObject<{
390
390
  refreshToken: string;
391
391
  merchant: {
392
392
  status: "active" | "suspended" | "closed";
393
+ businessName: string;
394
+ email: string;
393
395
  id: string;
394
396
  createdAt: string;
395
- walletAddress: string | null;
396
- email: string;
397
- metadata: Record<string, string | number | boolean | null>;
398
397
  updatedAt: string;
398
+ metadata: Record<string, string | number | boolean | null>;
399
+ walletAddress: string | null;
399
400
  onchainMerchantId: number | null;
400
- businessName: string;
401
401
  tier: "free" | "growth" | "business" | "enterprise";
402
402
  payoutAddress: string | null;
403
403
  onboardingCompleted: boolean;
@@ -412,13 +412,13 @@ declare const loginOutputSchema: z.ZodObject<{
412
412
  refreshToken: string;
413
413
  merchant: {
414
414
  status: "active" | "suspended" | "closed";
415
+ businessName: string;
416
+ email: string;
415
417
  id: string;
416
418
  createdAt: string;
417
- walletAddress: string | null;
418
- email: string;
419
419
  updatedAt: string;
420
+ walletAddress: string | null;
420
421
  onchainMerchantId: number | null;
421
- businessName: string;
422
422
  tier: "free" | "growth" | "business" | "enterprise";
423
423
  payoutAddress: string | null;
424
424
  onboardingCompleted: boolean;
@@ -32,14 +32,14 @@ declare const merchantSchema: z.ZodObject<{
32
32
  updatedAt: z.ZodString;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  status: "active" | "suspended" | "closed";
35
+ businessName: string;
36
+ email: string;
35
37
  id: string;
36
38
  createdAt: string;
37
- walletAddress: string | null;
38
- email: string;
39
- metadata: Record<string, string | number | boolean | null>;
40
39
  updatedAt: string;
40
+ metadata: Record<string, string | number | boolean | null>;
41
+ walletAddress: string | null;
41
42
  onchainMerchantId: number | null;
42
- businessName: string;
43
43
  tier: "free" | "growth" | "business" | "enterprise";
44
44
  payoutAddress: string | null;
45
45
  onboardingCompleted: boolean;
@@ -50,13 +50,13 @@ declare const merchantSchema: z.ZodObject<{
50
50
  whitelabelEnabled: boolean;
51
51
  }, {
52
52
  status: "active" | "suspended" | "closed";
53
+ businessName: string;
54
+ email: string;
53
55
  id: string;
54
56
  createdAt: string;
55
- walletAddress: string | null;
56
- email: string;
57
57
  updatedAt: string;
58
+ walletAddress: string | null;
58
59
  onchainMerchantId: number | null;
59
- businessName: string;
60
60
  tier: "free" | "growth" | "business" | "enterprise";
61
61
  payoutAddress: string | null;
62
62
  onboardingCompleted: boolean;
@@ -75,14 +75,14 @@ declare const createMerchantInputSchema: z.ZodObject<{
75
75
  countryCode: z.ZodOptional<z.ZodString>;
76
76
  websiteUrl: z.ZodOptional<z.ZodString>;
77
77
  }, "strip", z.ZodTypeAny, {
78
- email: string;
79
78
  businessName: string;
79
+ email: string;
80
80
  password: string;
81
81
  countryCode?: string | undefined;
82
82
  websiteUrl?: string | undefined;
83
83
  }, {
84
- email: string;
85
84
  businessName: string;
85
+ email: string;
86
86
  password: string;
87
87
  countryCode?: string | undefined;
88
88
  websiteUrl?: string | undefined;
@@ -126,8 +126,8 @@ declare const updateMerchantInputSchema: z.ZodObject<{
126
126
  subscriptionCharged?: boolean | undefined;
127
127
  }>>;
128
128
  }, "strip", z.ZodTypeAny, {
129
- metadata?: Record<string, string | number | boolean | null> | undefined;
130
129
  businessName?: string | undefined;
130
+ metadata?: Record<string, string | number | boolean | null> | undefined;
131
131
  payoutAddress?: string | undefined;
132
132
  defaultCurrency?: "USDC" | "EURC" | undefined;
133
133
  countryCode?: string | null | undefined;
@@ -138,8 +138,8 @@ declare const updateMerchantInputSchema: z.ZodObject<{
138
138
  subscriptionCharged?: boolean | undefined;
139
139
  } | undefined;
140
140
  }, {
141
- metadata?: Record<string, string | number | boolean | null> | undefined;
142
141
  businessName?: string | undefined;
142
+ metadata?: Record<string, string | number | boolean | null> | undefined;
143
143
  payoutAddress?: string | undefined;
144
144
  defaultCurrency?: "USDC" | "EURC" | undefined;
145
145
  countryCode?: string | null | undefined;
@@ -204,14 +204,14 @@ declare const merchantPublicBrandSchema: z.ZodObject<{
204
204
  logoUrl: z.ZodNullable<z.ZodString>;
205
205
  walletAddress: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
206
206
  }, "strip", z.ZodTypeAny, {
207
+ businessName: string;
207
208
  id: string;
208
209
  walletAddress: string | null;
209
- businessName: string;
210
210
  logoUrl: string | null;
211
211
  }, {
212
+ businessName: string;
212
213
  id: string;
213
214
  walletAddress: string | null;
214
- businessName: string;
215
215
  logoUrl: string | null;
216
216
  }>;
217
217
  type MerchantPublicBrand = z.infer<typeof merchantPublicBrandSchema>;
@@ -288,16 +288,16 @@ declare const merchantMemberSchema: z.ZodObject<{
288
288
  invitedAt: z.ZodString;
289
289
  acceptedAt: z.ZodNullable<z.ZodString>;
290
290
  }, "strip", z.ZodTypeAny, {
291
- id: string;
292
291
  merchantId: string;
293
292
  email: string;
293
+ id: string;
294
294
  role: "owner" | "admin" | "developer" | "read_only";
295
295
  invitedAt: string;
296
296
  acceptedAt: string | null;
297
297
  }, {
298
- id: string;
299
298
  merchantId: string;
300
299
  email: string;
300
+ id: string;
301
301
  role: "owner" | "admin" | "developer" | "read_only";
302
302
  invitedAt: string;
303
303
  acceptedAt: string | null;
@@ -350,14 +350,14 @@ declare const loginOutputSchema: z.ZodObject<{
350
350
  updatedAt: z.ZodString;
351
351
  }, "strip", z.ZodTypeAny, {
352
352
  status: "active" | "suspended" | "closed";
353
+ businessName: string;
354
+ email: string;
353
355
  id: string;
354
356
  createdAt: string;
355
- walletAddress: string | null;
356
- email: string;
357
- metadata: Record<string, string | number | boolean | null>;
358
357
  updatedAt: string;
358
+ metadata: Record<string, string | number | boolean | null>;
359
+ walletAddress: string | null;
359
360
  onchainMerchantId: number | null;
360
- businessName: string;
361
361
  tier: "free" | "growth" | "business" | "enterprise";
362
362
  payoutAddress: string | null;
363
363
  onboardingCompleted: boolean;
@@ -368,13 +368,13 @@ declare const loginOutputSchema: z.ZodObject<{
368
368
  whitelabelEnabled: boolean;
369
369
  }, {
370
370
  status: "active" | "suspended" | "closed";
371
+ businessName: string;
372
+ email: string;
371
373
  id: string;
372
374
  createdAt: string;
373
- walletAddress: string | null;
374
- email: string;
375
375
  updatedAt: string;
376
+ walletAddress: string | null;
376
377
  onchainMerchantId: number | null;
377
- businessName: string;
378
378
  tier: "free" | "growth" | "business" | "enterprise";
379
379
  payoutAddress: string | null;
380
380
  onboardingCompleted: boolean;
@@ -390,14 +390,14 @@ declare const loginOutputSchema: z.ZodObject<{
390
390
  refreshToken: string;
391
391
  merchant: {
392
392
  status: "active" | "suspended" | "closed";
393
+ businessName: string;
394
+ email: string;
393
395
  id: string;
394
396
  createdAt: string;
395
- walletAddress: string | null;
396
- email: string;
397
- metadata: Record<string, string | number | boolean | null>;
398
397
  updatedAt: string;
398
+ metadata: Record<string, string | number | boolean | null>;
399
+ walletAddress: string | null;
399
400
  onchainMerchantId: number | null;
400
- businessName: string;
401
401
  tier: "free" | "growth" | "business" | "enterprise";
402
402
  payoutAddress: string | null;
403
403
  onboardingCompleted: boolean;
@@ -412,13 +412,13 @@ declare const loginOutputSchema: z.ZodObject<{
412
412
  refreshToken: string;
413
413
  merchant: {
414
414
  status: "active" | "suspended" | "closed";
415
+ businessName: string;
416
+ email: string;
415
417
  id: string;
416
418
  createdAt: string;
417
- walletAddress: string | null;
418
- email: string;
419
419
  updatedAt: string;
420
+ walletAddress: string | null;
420
421
  onchainMerchantId: number | null;
421
- businessName: string;
422
422
  tier: "free" | "growth" | "business" | "enterprise";
423
423
  payoutAddress: string | null;
424
424
  onboardingCompleted: boolean;
@@ -70,18 +70,18 @@ declare const paymentSessionSchema: z.ZodObject<{
70
70
  updatedAt: z.ZodString;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
73
- id: string;
73
+ amount: string;
74
+ currency: "USDC" | "EURC";
75
+ customerId: string | null;
74
76
  merchantId: string;
77
+ description: string | null;
78
+ id: string;
75
79
  createdAt: string;
76
- metadata: Record<string, string | number | boolean | null>;
80
+ updatedAt: string;
77
81
  chainMerchantId: string | null;
78
82
  tokenAddress: string | null;
79
- customerId: string | null;
80
- amount: string;
81
- currency: "USDC" | "EURC";
82
83
  feeAmount: string;
83
84
  netAmount: string;
84
- description: string | null;
85
85
  payerWalletAddress: string | null;
86
86
  payerEmail: string | null;
87
87
  successUrl: string | null;
@@ -90,21 +90,22 @@ declare const paymentSessionSchema: z.ZodObject<{
90
90
  bridgeTxHash: string | null;
91
91
  onchainTxHash: string | null;
92
92
  checkoutUrl: string;
93
+ metadata: Record<string, string | number | boolean | null>;
93
94
  expiresAt: string;
94
- updatedAt: string;
95
95
  }, {
96
96
  status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
97
- id: string;
97
+ amount: string;
98
+ currency: "USDC" | "EURC";
99
+ customerId: string | null;
98
100
  merchantId: string;
101
+ description: string | null;
102
+ id: string;
99
103
  createdAt: string;
104
+ updatedAt: string;
100
105
  chainMerchantId: string | null;
101
106
  tokenAddress: string | null;
102
- customerId: string | null;
103
- amount: string;
104
- currency: "USDC" | "EURC";
105
107
  feeAmount: string;
106
108
  netAmount: string;
107
- description: string | null;
108
109
  payerWalletAddress: string | null;
109
110
  payerEmail: string | null;
110
111
  successUrl: string | null;
@@ -114,7 +115,6 @@ declare const paymentSessionSchema: z.ZodObject<{
114
115
  onchainTxHash: string | null;
115
116
  checkoutUrl: string;
116
117
  expiresAt: string;
117
- updatedAt: string;
118
118
  metadata?: Record<string, string | number | boolean | null> | undefined;
119
119
  }>;
120
120
  type PaymentSession = z.infer<typeof paymentSessionSchema>;
@@ -127,12 +127,12 @@ declare const createPaymentSessionInputSchema: z.ZodObject<{
127
127
  email: z.ZodOptional<z.ZodString>;
128
128
  externalRef: z.ZodOptional<z.ZodString>;
129
129
  }, "strip", z.ZodTypeAny, {
130
- walletAddress?: string | undefined;
131
130
  email?: string | undefined;
131
+ walletAddress?: string | undefined;
132
132
  externalRef?: string | undefined;
133
133
  }, {
134
- walletAddress?: string | undefined;
135
134
  email?: string | undefined;
135
+ walletAddress?: string | undefined;
136
136
  externalRef?: string | undefined;
137
137
  }>>;
138
138
  successUrl: z.ZodOptional<z.ZodString>;
@@ -149,26 +149,26 @@ declare const createPaymentSessionInputSchema: z.ZodObject<{
149
149
  amount: string;
150
150
  currency: "USDC" | "EURC";
151
151
  expiresInMinutes: number;
152
- metadata?: Record<string, string | number | boolean | null> | undefined;
153
152
  description?: string | undefined;
154
153
  successUrl?: string | undefined;
155
154
  cancelUrl?: string | undefined;
155
+ metadata?: Record<string, string | number | boolean | null> | undefined;
156
156
  customer?: {
157
- walletAddress?: string | undefined;
158
157
  email?: string | undefined;
158
+ walletAddress?: string | undefined;
159
159
  externalRef?: string | undefined;
160
160
  } | undefined;
161
161
  supportedSourceChains?: ("arc" | "ethereum" | "base" | "polygon" | "arbitrum" | "optimism" | "avalanche" | "solana")[] | undefined;
162
162
  }, {
163
163
  amount: string;
164
164
  currency: "USDC" | "EURC";
165
- metadata?: Record<string, string | number | boolean | null> | undefined;
166
165
  description?: string | undefined;
167
166
  successUrl?: string | undefined;
168
167
  cancelUrl?: string | undefined;
168
+ metadata?: Record<string, string | number | boolean | null> | undefined;
169
169
  customer?: {
170
- walletAddress?: string | undefined;
171
170
  email?: string | undefined;
171
+ walletAddress?: string | undefined;
172
172
  externalRef?: string | undefined;
173
173
  } | undefined;
174
174
  expiresInMinutes?: number | undefined;
@@ -70,18 +70,18 @@ declare const paymentSessionSchema: z.ZodObject<{
70
70
  updatedAt: z.ZodString;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
73
- id: string;
73
+ amount: string;
74
+ currency: "USDC" | "EURC";
75
+ customerId: string | null;
74
76
  merchantId: string;
77
+ description: string | null;
78
+ id: string;
75
79
  createdAt: string;
76
- metadata: Record<string, string | number | boolean | null>;
80
+ updatedAt: string;
77
81
  chainMerchantId: string | null;
78
82
  tokenAddress: string | null;
79
- customerId: string | null;
80
- amount: string;
81
- currency: "USDC" | "EURC";
82
83
  feeAmount: string;
83
84
  netAmount: string;
84
- description: string | null;
85
85
  payerWalletAddress: string | null;
86
86
  payerEmail: string | null;
87
87
  successUrl: string | null;
@@ -90,21 +90,22 @@ declare const paymentSessionSchema: z.ZodObject<{
90
90
  bridgeTxHash: string | null;
91
91
  onchainTxHash: string | null;
92
92
  checkoutUrl: string;
93
+ metadata: Record<string, string | number | boolean | null>;
93
94
  expiresAt: string;
94
- updatedAt: string;
95
95
  }, {
96
96
  status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
97
- id: string;
97
+ amount: string;
98
+ currency: "USDC" | "EURC";
99
+ customerId: string | null;
98
100
  merchantId: string;
101
+ description: string | null;
102
+ id: string;
99
103
  createdAt: string;
104
+ updatedAt: string;
100
105
  chainMerchantId: string | null;
101
106
  tokenAddress: string | null;
102
- customerId: string | null;
103
- amount: string;
104
- currency: "USDC" | "EURC";
105
107
  feeAmount: string;
106
108
  netAmount: string;
107
- description: string | null;
108
109
  payerWalletAddress: string | null;
109
110
  payerEmail: string | null;
110
111
  successUrl: string | null;
@@ -114,7 +115,6 @@ declare const paymentSessionSchema: z.ZodObject<{
114
115
  onchainTxHash: string | null;
115
116
  checkoutUrl: string;
116
117
  expiresAt: string;
117
- updatedAt: string;
118
118
  metadata?: Record<string, string | number | boolean | null> | undefined;
119
119
  }>;
120
120
  type PaymentSession = z.infer<typeof paymentSessionSchema>;
@@ -127,12 +127,12 @@ declare const createPaymentSessionInputSchema: z.ZodObject<{
127
127
  email: z.ZodOptional<z.ZodString>;
128
128
  externalRef: z.ZodOptional<z.ZodString>;
129
129
  }, "strip", z.ZodTypeAny, {
130
- walletAddress?: string | undefined;
131
130
  email?: string | undefined;
131
+ walletAddress?: string | undefined;
132
132
  externalRef?: string | undefined;
133
133
  }, {
134
- walletAddress?: string | undefined;
135
134
  email?: string | undefined;
135
+ walletAddress?: string | undefined;
136
136
  externalRef?: string | undefined;
137
137
  }>>;
138
138
  successUrl: z.ZodOptional<z.ZodString>;
@@ -149,26 +149,26 @@ declare const createPaymentSessionInputSchema: z.ZodObject<{
149
149
  amount: string;
150
150
  currency: "USDC" | "EURC";
151
151
  expiresInMinutes: number;
152
- metadata?: Record<string, string | number | boolean | null> | undefined;
153
152
  description?: string | undefined;
154
153
  successUrl?: string | undefined;
155
154
  cancelUrl?: string | undefined;
155
+ metadata?: Record<string, string | number | boolean | null> | undefined;
156
156
  customer?: {
157
- walletAddress?: string | undefined;
158
157
  email?: string | undefined;
158
+ walletAddress?: string | undefined;
159
159
  externalRef?: string | undefined;
160
160
  } | undefined;
161
161
  supportedSourceChains?: ("arc" | "ethereum" | "base" | "polygon" | "arbitrum" | "optimism" | "avalanche" | "solana")[] | undefined;
162
162
  }, {
163
163
  amount: string;
164
164
  currency: "USDC" | "EURC";
165
- metadata?: Record<string, string | number | boolean | null> | undefined;
166
165
  description?: string | undefined;
167
166
  successUrl?: string | undefined;
168
167
  cancelUrl?: string | undefined;
168
+ metadata?: Record<string, string | number | boolean | null> | undefined;
169
169
  customer?: {
170
- walletAddress?: string | undefined;
171
170
  email?: string | undefined;
171
+ walletAddress?: string | undefined;
172
172
  externalRef?: string | undefined;
173
173
  } | undefined;
174
174
  expiresInMinutes?: number | undefined;