@strimz/shared-types 0.13.1 → 0.14.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.d.cts +136 -136
- package/dist/analytics.d.ts +136 -136
- package/dist/api-keys.d.cts +20 -20
- package/dist/api-keys.d.ts +20 -20
- package/dist/compliance.d.cts +4 -4
- package/dist/compliance.d.ts +4 -4
- package/dist/customers.d.cts +6 -6
- package/dist/customers.d.ts +6 -6
- package/dist/events.cjs +1 -25
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +1343 -2149
- package/dist/events.d.ts +1343 -2149
- package/dist/events.js +2 -23
- package/dist/events.js.map +1 -1
- package/dist/index.cjs +0 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -22
- package/dist/index.js.map +1 -1
- package/dist/invoices.d.cts +10 -10
- package/dist/invoices.d.ts +10 -10
- package/dist/merchants.d.cts +20 -20
- package/dist/merchants.d.ts +20 -20
- package/dist/payment-sessions.d.cts +16 -16
- package/dist/payment-sessions.d.ts +16 -16
- package/dist/refunds.d.cts +36 -36
- package/dist/refunds.d.ts +36 -36
- package/dist/storefronts.d.cts +27 -27
- package/dist/storefronts.d.ts +27 -27
- package/dist/subscriptions.d.cts +30 -30
- package/dist/subscriptions.d.ts +30 -30
- package/dist/transactions.d.cts +12 -12
- package/dist/transactions.d.ts +12 -12
- package/dist/webhooks.cjs +0 -3
- package/dist/webhooks.cjs.map +1 -1
- package/dist/webhooks.d.cts +40 -40
- package/dist/webhooks.d.ts +40 -40
- package/dist/webhooks.js +0 -3
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
- package/src/events.ts +1 -24
- package/src/webhooks.ts +0 -3
package/dist/invoices.d.cts
CHANGED
|
@@ -53,9 +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
|
-
|
|
56
|
+
total: string;
|
|
57
|
+
currency: "USDC" | "EURC";
|
|
57
58
|
merchantId: string;
|
|
58
|
-
|
|
59
|
+
id: string;
|
|
59
60
|
customerName: string | null;
|
|
60
61
|
customerEmail: string | null;
|
|
61
62
|
lineItems: [{
|
|
@@ -68,20 +69,20 @@ declare const invoiceSchema: z.ZodObject<{
|
|
|
68
69
|
unitAmount: string;
|
|
69
70
|
}[]];
|
|
70
71
|
subtotal: string;
|
|
71
|
-
total: string;
|
|
72
|
-
currency: "USDC" | "EURC";
|
|
73
72
|
note: string | null;
|
|
74
73
|
sessionId: string | null;
|
|
75
74
|
dueAt: string;
|
|
76
75
|
paidAt: string | null;
|
|
77
76
|
sentAt: string | null;
|
|
77
|
+
createdAt: string;
|
|
78
78
|
updatedAt: string;
|
|
79
79
|
}, {
|
|
80
80
|
number: string;
|
|
81
81
|
status: "void" | "draft" | "sent" | "paid" | "overdue";
|
|
82
|
-
|
|
82
|
+
total: string;
|
|
83
|
+
currency: "USDC" | "EURC";
|
|
83
84
|
merchantId: string;
|
|
84
|
-
|
|
85
|
+
id: string;
|
|
85
86
|
customerName: string | null;
|
|
86
87
|
customerEmail: string | null;
|
|
87
88
|
lineItems: [{
|
|
@@ -94,13 +95,12 @@ declare const invoiceSchema: z.ZodObject<{
|
|
|
94
95
|
unitAmount: string;
|
|
95
96
|
}[]];
|
|
96
97
|
subtotal: string;
|
|
97
|
-
total: string;
|
|
98
|
-
currency: "USDC" | "EURC";
|
|
99
98
|
note: string | null;
|
|
100
99
|
sessionId: string | null;
|
|
101
100
|
dueAt: string;
|
|
102
101
|
paidAt: string | null;
|
|
103
102
|
sentAt: string | null;
|
|
103
|
+
createdAt: string;
|
|
104
104
|
updatedAt: string;
|
|
105
105
|
}>;
|
|
106
106
|
type Invoice = z.infer<typeof invoiceSchema>;
|
|
@@ -124,6 +124,7 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
124
124
|
note: z.ZodOptional<z.ZodString>;
|
|
125
125
|
dueInDays: z.ZodDefault<z.ZodNumber>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
currency: "USDC" | "EURC";
|
|
127
128
|
lineItems: [{
|
|
128
129
|
description: string;
|
|
129
130
|
quantity: number;
|
|
@@ -133,12 +134,12 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
133
134
|
quantity: number;
|
|
134
135
|
unitAmount: string;
|
|
135
136
|
}[]];
|
|
136
|
-
currency: "USDC" | "EURC";
|
|
137
137
|
dueInDays: number;
|
|
138
138
|
customerName?: string | undefined;
|
|
139
139
|
customerEmail?: string | undefined;
|
|
140
140
|
note?: string | undefined;
|
|
141
141
|
}, {
|
|
142
|
+
currency: "USDC" | "EURC";
|
|
142
143
|
lineItems: [{
|
|
143
144
|
description: string;
|
|
144
145
|
quantity: number;
|
|
@@ -148,7 +149,6 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
148
149
|
quantity: number;
|
|
149
150
|
unitAmount: string;
|
|
150
151
|
}[]];
|
|
151
|
-
currency: "USDC" | "EURC";
|
|
152
152
|
customerName?: string | undefined;
|
|
153
153
|
customerEmail?: string | undefined;
|
|
154
154
|
note?: string | undefined;
|
package/dist/invoices.d.ts
CHANGED
|
@@ -53,9 +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
|
-
|
|
56
|
+
total: string;
|
|
57
|
+
currency: "USDC" | "EURC";
|
|
57
58
|
merchantId: string;
|
|
58
|
-
|
|
59
|
+
id: string;
|
|
59
60
|
customerName: string | null;
|
|
60
61
|
customerEmail: string | null;
|
|
61
62
|
lineItems: [{
|
|
@@ -68,20 +69,20 @@ declare const invoiceSchema: z.ZodObject<{
|
|
|
68
69
|
unitAmount: string;
|
|
69
70
|
}[]];
|
|
70
71
|
subtotal: string;
|
|
71
|
-
total: string;
|
|
72
|
-
currency: "USDC" | "EURC";
|
|
73
72
|
note: string | null;
|
|
74
73
|
sessionId: string | null;
|
|
75
74
|
dueAt: string;
|
|
76
75
|
paidAt: string | null;
|
|
77
76
|
sentAt: string | null;
|
|
77
|
+
createdAt: string;
|
|
78
78
|
updatedAt: string;
|
|
79
79
|
}, {
|
|
80
80
|
number: string;
|
|
81
81
|
status: "void" | "draft" | "sent" | "paid" | "overdue";
|
|
82
|
-
|
|
82
|
+
total: string;
|
|
83
|
+
currency: "USDC" | "EURC";
|
|
83
84
|
merchantId: string;
|
|
84
|
-
|
|
85
|
+
id: string;
|
|
85
86
|
customerName: string | null;
|
|
86
87
|
customerEmail: string | null;
|
|
87
88
|
lineItems: [{
|
|
@@ -94,13 +95,12 @@ declare const invoiceSchema: z.ZodObject<{
|
|
|
94
95
|
unitAmount: string;
|
|
95
96
|
}[]];
|
|
96
97
|
subtotal: string;
|
|
97
|
-
total: string;
|
|
98
|
-
currency: "USDC" | "EURC";
|
|
99
98
|
note: string | null;
|
|
100
99
|
sessionId: string | null;
|
|
101
100
|
dueAt: string;
|
|
102
101
|
paidAt: string | null;
|
|
103
102
|
sentAt: string | null;
|
|
103
|
+
createdAt: string;
|
|
104
104
|
updatedAt: string;
|
|
105
105
|
}>;
|
|
106
106
|
type Invoice = z.infer<typeof invoiceSchema>;
|
|
@@ -124,6 +124,7 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
124
124
|
note: z.ZodOptional<z.ZodString>;
|
|
125
125
|
dueInDays: z.ZodDefault<z.ZodNumber>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
currency: "USDC" | "EURC";
|
|
127
128
|
lineItems: [{
|
|
128
129
|
description: string;
|
|
129
130
|
quantity: number;
|
|
@@ -133,12 +134,12 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
133
134
|
quantity: number;
|
|
134
135
|
unitAmount: string;
|
|
135
136
|
}[]];
|
|
136
|
-
currency: "USDC" | "EURC";
|
|
137
137
|
dueInDays: number;
|
|
138
138
|
customerName?: string | undefined;
|
|
139
139
|
customerEmail?: string | undefined;
|
|
140
140
|
note?: string | undefined;
|
|
141
141
|
}, {
|
|
142
|
+
currency: "USDC" | "EURC";
|
|
142
143
|
lineItems: [{
|
|
143
144
|
description: string;
|
|
144
145
|
quantity: number;
|
|
@@ -148,7 +149,6 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
148
149
|
quantity: number;
|
|
149
150
|
unitAmount: string;
|
|
150
151
|
}[]];
|
|
151
|
-
currency: "USDC" | "EURC";
|
|
152
152
|
customerName?: string | undefined;
|
|
153
153
|
customerEmail?: string | undefined;
|
|
154
154
|
note?: string | undefined;
|
package/dist/merchants.d.cts
CHANGED
|
@@ -32,13 +32,13 @@ 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
39
|
updatedAt: string;
|
|
38
40
|
metadata: Record<string, string | number | boolean | null>;
|
|
39
41
|
walletAddress: string | null;
|
|
40
|
-
email: string;
|
|
41
|
-
businessName: string;
|
|
42
42
|
onchainMerchantId: number | null;
|
|
43
43
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
44
44
|
payoutAddress: string | null;
|
|
@@ -50,12 +50,12 @@ 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
57
|
updatedAt: string;
|
|
56
58
|
walletAddress: string | null;
|
|
57
|
-
email: string;
|
|
58
|
-
businessName: string;
|
|
59
59
|
onchainMerchantId: number | null;
|
|
60
60
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
61
61
|
payoutAddress: string | null;
|
|
@@ -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,13 +350,13 @@ 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
357
|
updatedAt: string;
|
|
356
358
|
metadata: Record<string, string | number | boolean | null>;
|
|
357
359
|
walletAddress: string | null;
|
|
358
|
-
email: string;
|
|
359
|
-
businessName: string;
|
|
360
360
|
onchainMerchantId: number | null;
|
|
361
361
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
362
362
|
payoutAddress: string | null;
|
|
@@ -368,12 +368,12 @@ 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
375
|
updatedAt: string;
|
|
374
376
|
walletAddress: string | null;
|
|
375
|
-
email: string;
|
|
376
|
-
businessName: string;
|
|
377
377
|
onchainMerchantId: number | null;
|
|
378
378
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
379
379
|
payoutAddress: string | null;
|
|
@@ -390,13 +390,13 @@ 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
397
|
updatedAt: string;
|
|
396
398
|
metadata: Record<string, string | number | boolean | null>;
|
|
397
399
|
walletAddress: string | null;
|
|
398
|
-
email: string;
|
|
399
|
-
businessName: string;
|
|
400
400
|
onchainMerchantId: number | null;
|
|
401
401
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
402
402
|
payoutAddress: string | null;
|
|
@@ -412,12 +412,12 @@ 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
419
|
updatedAt: string;
|
|
418
420
|
walletAddress: string | null;
|
|
419
|
-
email: string;
|
|
420
|
-
businessName: string;
|
|
421
421
|
onchainMerchantId: number | null;
|
|
422
422
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
423
423
|
payoutAddress: string | null;
|
package/dist/merchants.d.ts
CHANGED
|
@@ -32,13 +32,13 @@ 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
39
|
updatedAt: string;
|
|
38
40
|
metadata: Record<string, string | number | boolean | null>;
|
|
39
41
|
walletAddress: string | null;
|
|
40
|
-
email: string;
|
|
41
|
-
businessName: string;
|
|
42
42
|
onchainMerchantId: number | null;
|
|
43
43
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
44
44
|
payoutAddress: string | null;
|
|
@@ -50,12 +50,12 @@ 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
57
|
updatedAt: string;
|
|
56
58
|
walletAddress: string | null;
|
|
57
|
-
email: string;
|
|
58
|
-
businessName: string;
|
|
59
59
|
onchainMerchantId: number | null;
|
|
60
60
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
61
61
|
payoutAddress: string | null;
|
|
@@ -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,13 +350,13 @@ 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
357
|
updatedAt: string;
|
|
356
358
|
metadata: Record<string, string | number | boolean | null>;
|
|
357
359
|
walletAddress: string | null;
|
|
358
|
-
email: string;
|
|
359
|
-
businessName: string;
|
|
360
360
|
onchainMerchantId: number | null;
|
|
361
361
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
362
362
|
payoutAddress: string | null;
|
|
@@ -368,12 +368,12 @@ 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
375
|
updatedAt: string;
|
|
374
376
|
walletAddress: string | null;
|
|
375
|
-
email: string;
|
|
376
|
-
businessName: string;
|
|
377
377
|
onchainMerchantId: number | null;
|
|
378
378
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
379
379
|
payoutAddress: string | null;
|
|
@@ -390,13 +390,13 @@ 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
397
|
updatedAt: string;
|
|
396
398
|
metadata: Record<string, string | number | boolean | null>;
|
|
397
399
|
walletAddress: string | null;
|
|
398
|
-
email: string;
|
|
399
|
-
businessName: string;
|
|
400
400
|
onchainMerchantId: number | null;
|
|
401
401
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
402
402
|
payoutAddress: string | null;
|
|
@@ -412,12 +412,12 @@ 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
419
|
updatedAt: string;
|
|
418
420
|
walletAddress: string | null;
|
|
419
|
-
email: string;
|
|
420
|
-
businessName: string;
|
|
421
421
|
onchainMerchantId: number | null;
|
|
422
422
|
tier: "free" | "starter" | "growth" | "enterprise";
|
|
423
423
|
payoutAddress: string | null;
|
|
@@ -70,16 +70,16 @@ 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
|
-
|
|
73
|
+
amount: string;
|
|
74
|
+
currency: "USDC" | "EURC";
|
|
75
|
+
customerId: string | null;
|
|
74
76
|
merchantId: string;
|
|
75
|
-
createdAt: string;
|
|
76
77
|
description: string | null;
|
|
77
|
-
|
|
78
|
+
id: string;
|
|
79
|
+
createdAt: string;
|
|
78
80
|
updatedAt: string;
|
|
79
81
|
chainMerchantId: string | null;
|
|
80
82
|
tokenAddress: string | null;
|
|
81
|
-
customerId: string | null;
|
|
82
|
-
amount: string;
|
|
83
83
|
feeAmount: string;
|
|
84
84
|
netAmount: string;
|
|
85
85
|
payerWalletAddress: string | null;
|
|
@@ -94,16 +94,16 @@ declare const paymentSessionSchema: z.ZodObject<{
|
|
|
94
94
|
expiresAt: string;
|
|
95
95
|
}, {
|
|
96
96
|
status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
|
|
97
|
-
|
|
97
|
+
amount: string;
|
|
98
|
+
currency: "USDC" | "EURC";
|
|
99
|
+
customerId: string | null;
|
|
98
100
|
merchantId: string;
|
|
99
|
-
createdAt: string;
|
|
100
101
|
description: string | null;
|
|
101
|
-
|
|
102
|
+
id: string;
|
|
103
|
+
createdAt: string;
|
|
102
104
|
updatedAt: string;
|
|
103
105
|
chainMerchantId: string | null;
|
|
104
106
|
tokenAddress: string | null;
|
|
105
|
-
customerId: string | null;
|
|
106
|
-
amount: string;
|
|
107
107
|
feeAmount: string;
|
|
108
108
|
netAmount: string;
|
|
109
109
|
payerWalletAddress: string | null;
|
|
@@ -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.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -146,29 +146,29 @@ declare const createPaymentSessionInputSchema: z.ZodObject<{
|
|
|
146
146
|
supportedSourceChains: z.ZodOptional<z.ZodArray<z.ZodEnum<["arc", "ethereum", "base", "polygon", "arbitrum", "optimism", "avalanche", "solana"]>, "many">>;
|
|
147
147
|
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>>>>;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
currency: "USDC" | "EURC";
|
|
150
149
|
amount: string;
|
|
150
|
+
currency: "USDC" | "EURC";
|
|
151
151
|
expiresInMinutes: number;
|
|
152
152
|
description?: string | undefined;
|
|
153
153
|
successUrl?: string | undefined;
|
|
154
154
|
cancelUrl?: string | undefined;
|
|
155
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
|
-
currency: "USDC" | "EURC";
|
|
164
163
|
amount: string;
|
|
164
|
+
currency: "USDC" | "EURC";
|
|
165
165
|
description?: string | undefined;
|
|
166
166
|
successUrl?: string | undefined;
|
|
167
167
|
cancelUrl?: string | undefined;
|
|
168
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,16 +70,16 @@ 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
|
-
|
|
73
|
+
amount: string;
|
|
74
|
+
currency: "USDC" | "EURC";
|
|
75
|
+
customerId: string | null;
|
|
74
76
|
merchantId: string;
|
|
75
|
-
createdAt: string;
|
|
76
77
|
description: string | null;
|
|
77
|
-
|
|
78
|
+
id: string;
|
|
79
|
+
createdAt: string;
|
|
78
80
|
updatedAt: string;
|
|
79
81
|
chainMerchantId: string | null;
|
|
80
82
|
tokenAddress: string | null;
|
|
81
|
-
customerId: string | null;
|
|
82
|
-
amount: string;
|
|
83
83
|
feeAmount: string;
|
|
84
84
|
netAmount: string;
|
|
85
85
|
payerWalletAddress: string | null;
|
|
@@ -94,16 +94,16 @@ declare const paymentSessionSchema: z.ZodObject<{
|
|
|
94
94
|
expiresAt: string;
|
|
95
95
|
}, {
|
|
96
96
|
status: "created" | "awaiting_payment" | "submitted" | "confirmed" | "failed" | "expired" | "cancelled";
|
|
97
|
-
|
|
97
|
+
amount: string;
|
|
98
|
+
currency: "USDC" | "EURC";
|
|
99
|
+
customerId: string | null;
|
|
98
100
|
merchantId: string;
|
|
99
|
-
createdAt: string;
|
|
100
101
|
description: string | null;
|
|
101
|
-
|
|
102
|
+
id: string;
|
|
103
|
+
createdAt: string;
|
|
102
104
|
updatedAt: string;
|
|
103
105
|
chainMerchantId: string | null;
|
|
104
106
|
tokenAddress: string | null;
|
|
105
|
-
customerId: string | null;
|
|
106
|
-
amount: string;
|
|
107
107
|
feeAmount: string;
|
|
108
108
|
netAmount: string;
|
|
109
109
|
payerWalletAddress: string | null;
|
|
@@ -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.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -146,29 +146,29 @@ declare const createPaymentSessionInputSchema: z.ZodObject<{
|
|
|
146
146
|
supportedSourceChains: z.ZodOptional<z.ZodArray<z.ZodEnum<["arc", "ethereum", "base", "polygon", "arbitrum", "optimism", "avalanche", "solana"]>, "many">>;
|
|
147
147
|
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>>>>;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
currency: "USDC" | "EURC";
|
|
150
149
|
amount: string;
|
|
150
|
+
currency: "USDC" | "EURC";
|
|
151
151
|
expiresInMinutes: number;
|
|
152
152
|
description?: string | undefined;
|
|
153
153
|
successUrl?: string | undefined;
|
|
154
154
|
cancelUrl?: string | undefined;
|
|
155
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
|
-
currency: "USDC" | "EURC";
|
|
164
163
|
amount: string;
|
|
164
|
+
currency: "USDC" | "EURC";
|
|
165
165
|
description?: string | undefined;
|
|
166
166
|
successUrl?: string | undefined;
|
|
167
167
|
cancelUrl?: string | undefined;
|
|
168
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;
|