@strimz/shared-types 0.16.0 → 0.17.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 +141 -141
- package/dist/analytics.d.ts +141 -141
- package/dist/api-keys.d.cts +14 -14
- package/dist/api-keys.d.ts +14 -14
- package/dist/compliance.d.cts +8 -8
- package/dist/compliance.d.ts +8 -8
- package/dist/customers.d.cts +7 -7
- package/dist/customers.d.ts +7 -7
- package/dist/events.d.cts +1460 -1460
- package/dist/events.d.ts +1460 -1460
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -7
- package/dist/index.d.ts +25 -7
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/invoices.d.cts +12 -12
- package/dist/invoices.d.ts +12 -12
- package/dist/merchants.d.cts +26 -26
- package/dist/merchants.d.ts +26 -26
- 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 +13 -13
- package/dist/storefronts.d.ts +13 -13
- package/dist/subscriptions.d.cts +32 -32
- package/dist/subscriptions.d.ts +32 -32
- package/dist/transactions.d.cts +10 -10
- package/dist/transactions.d.ts +10 -10
- package/dist/webhooks.d.cts +28 -28
- package/dist/webhooks.d.ts +28 -28
- package/package.json +2 -2
- package/src/notifications.ts +9 -0
package/dist/invoices.d.cts
CHANGED
|
@@ -53,10 +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
|
-
total: string;
|
|
57
|
-
currency: "USDC" | "EURC";
|
|
58
|
-
merchantId: string;
|
|
59
56
|
id: string;
|
|
57
|
+
merchantId: string;
|
|
58
|
+
sessionId: string | null;
|
|
59
|
+
createdAt: string;
|
|
60
60
|
customerName: string | null;
|
|
61
61
|
customerEmail: string | null;
|
|
62
62
|
lineItems: [{
|
|
@@ -69,20 +69,20 @@ declare const invoiceSchema: z.ZodObject<{
|
|
|
69
69
|
unitAmount: string;
|
|
70
70
|
}[]];
|
|
71
71
|
subtotal: string;
|
|
72
|
+
total: string;
|
|
73
|
+
currency: "USDC" | "EURC";
|
|
72
74
|
note: string | null;
|
|
73
|
-
sessionId: string | null;
|
|
74
75
|
dueAt: string;
|
|
75
76
|
paidAt: string | null;
|
|
76
77
|
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
|
-
total: string;
|
|
83
|
-
currency: "USDC" | "EURC";
|
|
84
|
-
merchantId: string;
|
|
85
82
|
id: string;
|
|
83
|
+
merchantId: string;
|
|
84
|
+
sessionId: string | null;
|
|
85
|
+
createdAt: string;
|
|
86
86
|
customerName: string | null;
|
|
87
87
|
customerEmail: string | null;
|
|
88
88
|
lineItems: [{
|
|
@@ -95,12 +95,12 @@ declare const invoiceSchema: z.ZodObject<{
|
|
|
95
95
|
unitAmount: string;
|
|
96
96
|
}[]];
|
|
97
97
|
subtotal: string;
|
|
98
|
+
total: string;
|
|
99
|
+
currency: "USDC" | "EURC";
|
|
98
100
|
note: string | null;
|
|
99
|
-
sessionId: string | null;
|
|
100
101
|
dueAt: string;
|
|
101
102
|
paidAt: string | null;
|
|
102
103
|
sentAt: string | null;
|
|
103
|
-
createdAt: string;
|
|
104
104
|
updatedAt: string;
|
|
105
105
|
}>;
|
|
106
106
|
type Invoice = z.infer<typeof invoiceSchema>;
|
|
@@ -124,7 +124,6 @@ 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";
|
|
128
127
|
lineItems: [{
|
|
129
128
|
description: string;
|
|
130
129
|
quantity: number;
|
|
@@ -134,12 +133,12 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
134
133
|
quantity: number;
|
|
135
134
|
unitAmount: string;
|
|
136
135
|
}[]];
|
|
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";
|
|
143
142
|
lineItems: [{
|
|
144
143
|
description: string;
|
|
145
144
|
quantity: number;
|
|
@@ -149,6 +148,7 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
149
148
|
quantity: number;
|
|
150
149
|
unitAmount: string;
|
|
151
150
|
}[]];
|
|
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,10 +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
|
-
total: string;
|
|
57
|
-
currency: "USDC" | "EURC";
|
|
58
|
-
merchantId: string;
|
|
59
56
|
id: string;
|
|
57
|
+
merchantId: string;
|
|
58
|
+
sessionId: string | null;
|
|
59
|
+
createdAt: string;
|
|
60
60
|
customerName: string | null;
|
|
61
61
|
customerEmail: string | null;
|
|
62
62
|
lineItems: [{
|
|
@@ -69,20 +69,20 @@ declare const invoiceSchema: z.ZodObject<{
|
|
|
69
69
|
unitAmount: string;
|
|
70
70
|
}[]];
|
|
71
71
|
subtotal: string;
|
|
72
|
+
total: string;
|
|
73
|
+
currency: "USDC" | "EURC";
|
|
72
74
|
note: string | null;
|
|
73
|
-
sessionId: string | null;
|
|
74
75
|
dueAt: string;
|
|
75
76
|
paidAt: string | null;
|
|
76
77
|
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
|
-
total: string;
|
|
83
|
-
currency: "USDC" | "EURC";
|
|
84
|
-
merchantId: string;
|
|
85
82
|
id: string;
|
|
83
|
+
merchantId: string;
|
|
84
|
+
sessionId: string | null;
|
|
85
|
+
createdAt: string;
|
|
86
86
|
customerName: string | null;
|
|
87
87
|
customerEmail: string | null;
|
|
88
88
|
lineItems: [{
|
|
@@ -95,12 +95,12 @@ declare const invoiceSchema: z.ZodObject<{
|
|
|
95
95
|
unitAmount: string;
|
|
96
96
|
}[]];
|
|
97
97
|
subtotal: string;
|
|
98
|
+
total: string;
|
|
99
|
+
currency: "USDC" | "EURC";
|
|
98
100
|
note: string | null;
|
|
99
|
-
sessionId: string | null;
|
|
100
101
|
dueAt: string;
|
|
101
102
|
paidAt: string | null;
|
|
102
103
|
sentAt: string | null;
|
|
103
|
-
createdAt: string;
|
|
104
104
|
updatedAt: string;
|
|
105
105
|
}>;
|
|
106
106
|
type Invoice = z.infer<typeof invoiceSchema>;
|
|
@@ -124,7 +124,6 @@ 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";
|
|
128
127
|
lineItems: [{
|
|
129
128
|
description: string;
|
|
130
129
|
quantity: number;
|
|
@@ -134,12 +133,12 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
134
133
|
quantity: number;
|
|
135
134
|
unitAmount: string;
|
|
136
135
|
}[]];
|
|
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";
|
|
143
142
|
lineItems: [{
|
|
144
143
|
description: string;
|
|
145
144
|
quantity: number;
|
|
@@ -149,6 +148,7 @@ declare const createInvoiceInputSchema: z.ZodObject<{
|
|
|
149
148
|
quantity: number;
|
|
150
149
|
unitAmount: string;
|
|
151
150
|
}[]];
|
|
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;
|
|
37
35
|
id: string;
|
|
36
|
+
walletAddress: string | null;
|
|
38
37
|
createdAt: string;
|
|
39
38
|
updatedAt: string;
|
|
40
39
|
metadata: Record<string, string | number | boolean | null>;
|
|
41
|
-
|
|
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;
|
|
55
53
|
id: string;
|
|
54
|
+
walletAddress: string | null;
|
|
56
55
|
createdAt: string;
|
|
57
56
|
updatedAt: string;
|
|
58
|
-
|
|
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
|
-
businessName: string;
|
|
79
78
|
email: string;
|
|
79
|
+
businessName: string;
|
|
80
80
|
password: string;
|
|
81
81
|
countryCode?: string | undefined;
|
|
82
82
|
websiteUrl?: string | undefined;
|
|
83
83
|
}, {
|
|
84
|
-
businessName: string;
|
|
85
84
|
email: string;
|
|
85
|
+
businessName: 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
|
-
businessName?: string | undefined;
|
|
130
129
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
130
|
+
businessName?: string | 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
|
-
businessName?: string | undefined;
|
|
142
141
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
142
|
+
businessName?: string | 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;
|
|
208
207
|
id: string;
|
|
209
208
|
walletAddress: string | null;
|
|
209
|
+
businessName: string;
|
|
210
210
|
logoUrl: string | null;
|
|
211
211
|
}, {
|
|
212
|
-
businessName: string;
|
|
213
212
|
id: string;
|
|
214
213
|
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;
|
|
291
292
|
merchantId: string;
|
|
292
293
|
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;
|
|
298
299
|
merchantId: string;
|
|
299
300
|
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;
|
|
355
353
|
id: string;
|
|
354
|
+
walletAddress: string | null;
|
|
356
355
|
createdAt: string;
|
|
357
356
|
updatedAt: string;
|
|
358
357
|
metadata: Record<string, string | number | boolean | null>;
|
|
359
|
-
|
|
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;
|
|
373
371
|
id: string;
|
|
372
|
+
walletAddress: string | null;
|
|
374
373
|
createdAt: string;
|
|
375
374
|
updatedAt: string;
|
|
376
|
-
|
|
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;
|
|
395
393
|
id: string;
|
|
394
|
+
walletAddress: string | null;
|
|
396
395
|
createdAt: string;
|
|
397
396
|
updatedAt: string;
|
|
398
397
|
metadata: Record<string, string | number | boolean | null>;
|
|
399
|
-
|
|
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;
|
|
417
415
|
id: string;
|
|
416
|
+
walletAddress: string | null;
|
|
418
417
|
createdAt: string;
|
|
419
418
|
updatedAt: string;
|
|
420
|
-
|
|
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;
|
|
37
35
|
id: string;
|
|
36
|
+
walletAddress: string | null;
|
|
38
37
|
createdAt: string;
|
|
39
38
|
updatedAt: string;
|
|
40
39
|
metadata: Record<string, string | number | boolean | null>;
|
|
41
|
-
|
|
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;
|
|
55
53
|
id: string;
|
|
54
|
+
walletAddress: string | null;
|
|
56
55
|
createdAt: string;
|
|
57
56
|
updatedAt: string;
|
|
58
|
-
|
|
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
|
-
businessName: string;
|
|
79
78
|
email: string;
|
|
79
|
+
businessName: string;
|
|
80
80
|
password: string;
|
|
81
81
|
countryCode?: string | undefined;
|
|
82
82
|
websiteUrl?: string | undefined;
|
|
83
83
|
}, {
|
|
84
|
-
businessName: string;
|
|
85
84
|
email: string;
|
|
85
|
+
businessName: 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
|
-
businessName?: string | undefined;
|
|
130
129
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
130
|
+
businessName?: string | 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
|
-
businessName?: string | undefined;
|
|
142
141
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
142
|
+
businessName?: string | 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;
|
|
208
207
|
id: string;
|
|
209
208
|
walletAddress: string | null;
|
|
209
|
+
businessName: string;
|
|
210
210
|
logoUrl: string | null;
|
|
211
211
|
}, {
|
|
212
|
-
businessName: string;
|
|
213
212
|
id: string;
|
|
214
213
|
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;
|
|
291
292
|
merchantId: string;
|
|
292
293
|
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;
|
|
298
299
|
merchantId: string;
|
|
299
300
|
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;
|
|
355
353
|
id: string;
|
|
354
|
+
walletAddress: string | null;
|
|
356
355
|
createdAt: string;
|
|
357
356
|
updatedAt: string;
|
|
358
357
|
metadata: Record<string, string | number | boolean | null>;
|
|
359
|
-
|
|
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;
|
|
373
371
|
id: string;
|
|
372
|
+
walletAddress: string | null;
|
|
374
373
|
createdAt: string;
|
|
375
374
|
updatedAt: string;
|
|
376
|
-
|
|
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;
|
|
395
393
|
id: string;
|
|
394
|
+
walletAddress: string | null;
|
|
396
395
|
createdAt: string;
|
|
397
396
|
updatedAt: string;
|
|
398
397
|
metadata: Record<string, string | number | boolean | null>;
|
|
399
|
-
|
|
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;
|
|
417
415
|
id: string;
|
|
416
|
+
walletAddress: string | null;
|
|
418
417
|
createdAt: string;
|
|
419
418
|
updatedAt: string;
|
|
420
|
-
|
|
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
|
-
amount: string;
|
|
74
|
-
currency: "USDC" | "EURC";
|
|
75
|
-
customerId: string | null;
|
|
76
|
-
merchantId: string;
|
|
77
|
-
description: string | null;
|
|
78
73
|
id: string;
|
|
74
|
+
merchantId: string;
|
|
79
75
|
createdAt: string;
|
|
76
|
+
description: string | null;
|
|
77
|
+
currency: "USDC" | "EURC";
|
|
80
78
|
updatedAt: string;
|
|
81
79
|
chainMerchantId: string | null;
|
|
82
80
|
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
|
-
amount: string;
|
|
98
|
-
currency: "USDC" | "EURC";
|
|
99
|
-
customerId: string | null;
|
|
100
|
-
merchantId: string;
|
|
101
|
-
description: string | null;
|
|
102
97
|
id: string;
|
|
98
|
+
merchantId: string;
|
|
103
99
|
createdAt: string;
|
|
100
|
+
description: string | null;
|
|
101
|
+
currency: "USDC" | "EURC";
|
|
104
102
|
updatedAt: string;
|
|
105
103
|
chainMerchantId: string | null;
|
|
106
104
|
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
|
-
email?: string | undefined;
|
|
131
130
|
walletAddress?: string | undefined;
|
|
131
|
+
email?: string | undefined;
|
|
132
132
|
externalRef?: string | undefined;
|
|
133
133
|
}, {
|
|
134
|
-
email?: string | undefined;
|
|
135
134
|
walletAddress?: string | undefined;
|
|
135
|
+
email?: 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
|
-
amount: string;
|
|
150
149
|
currency: "USDC" | "EURC";
|
|
150
|
+
amount: string;
|
|
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
|
-
email?: string | undefined;
|
|
158
157
|
walletAddress?: string | undefined;
|
|
158
|
+
email?: 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
|
-
amount: string;
|
|
164
163
|
currency: "USDC" | "EURC";
|
|
164
|
+
amount: string;
|
|
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
|
-
email?: string | undefined;
|
|
171
170
|
walletAddress?: string | undefined;
|
|
171
|
+
email?: 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
|
-
amount: string;
|
|
74
|
-
currency: "USDC" | "EURC";
|
|
75
|
-
customerId: string | null;
|
|
76
|
-
merchantId: string;
|
|
77
|
-
description: string | null;
|
|
78
73
|
id: string;
|
|
74
|
+
merchantId: string;
|
|
79
75
|
createdAt: string;
|
|
76
|
+
description: string | null;
|
|
77
|
+
currency: "USDC" | "EURC";
|
|
80
78
|
updatedAt: string;
|
|
81
79
|
chainMerchantId: string | null;
|
|
82
80
|
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
|
-
amount: string;
|
|
98
|
-
currency: "USDC" | "EURC";
|
|
99
|
-
customerId: string | null;
|
|
100
|
-
merchantId: string;
|
|
101
|
-
description: string | null;
|
|
102
97
|
id: string;
|
|
98
|
+
merchantId: string;
|
|
103
99
|
createdAt: string;
|
|
100
|
+
description: string | null;
|
|
101
|
+
currency: "USDC" | "EURC";
|
|
104
102
|
updatedAt: string;
|
|
105
103
|
chainMerchantId: string | null;
|
|
106
104
|
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
|
-
email?: string | undefined;
|
|
131
130
|
walletAddress?: string | undefined;
|
|
131
|
+
email?: string | undefined;
|
|
132
132
|
externalRef?: string | undefined;
|
|
133
133
|
}, {
|
|
134
|
-
email?: string | undefined;
|
|
135
134
|
walletAddress?: string | undefined;
|
|
135
|
+
email?: 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
|
-
amount: string;
|
|
150
149
|
currency: "USDC" | "EURC";
|
|
150
|
+
amount: string;
|
|
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
|
-
email?: string | undefined;
|
|
158
157
|
walletAddress?: string | undefined;
|
|
158
|
+
email?: 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
|
-
amount: string;
|
|
164
163
|
currency: "USDC" | "EURC";
|
|
164
|
+
amount: string;
|
|
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
|
-
email?: string | undefined;
|
|
171
170
|
walletAddress?: string | undefined;
|
|
171
|
+
email?: string | undefined;
|
|
172
172
|
externalRef?: string | undefined;
|
|
173
173
|
} | undefined;
|
|
174
174
|
expiresInMinutes?: number | undefined;
|