@klappay/types 2.0.2 → 2.0.4

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/index.d.ts CHANGED
@@ -136,7 +136,91 @@ declare const CreateChargeSchema: z.ZodObject<{
136
136
  idempotencyKey: z.ZodOptional<z.ZodString>;
137
137
  externalRef: z.ZodOptional<z.ZodString>;
138
138
  source: z.ZodOptional<z.ZodString>;
139
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
+ metadata: z.ZodOptional<z.ZodObject<{
140
+ klappay: z.ZodOptional<z.ZodObject<{
141
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
142
+ name: z.ZodString;
143
+ quantity: z.ZodOptional<z.ZodNumber>;
144
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ name: string;
147
+ quantity?: number | undefined;
148
+ imageUrl?: string | undefined;
149
+ }, {
150
+ name: string;
151
+ quantity?: number | undefined;
152
+ imageUrl?: string | undefined;
153
+ }>, "many">>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ products?: {
156
+ name: string;
157
+ quantity?: number | undefined;
158
+ imageUrl?: string | undefined;
159
+ }[] | undefined;
160
+ }, {
161
+ products?: {
162
+ name: string;
163
+ quantity?: number | undefined;
164
+ imageUrl?: string | undefined;
165
+ }[] | undefined;
166
+ }>>;
167
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
168
+ klappay: z.ZodOptional<z.ZodObject<{
169
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
170
+ name: z.ZodString;
171
+ quantity: z.ZodOptional<z.ZodNumber>;
172
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ name: string;
175
+ quantity?: number | undefined;
176
+ imageUrl?: string | undefined;
177
+ }, {
178
+ name: string;
179
+ quantity?: number | undefined;
180
+ imageUrl?: string | undefined;
181
+ }>, "many">>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ products?: {
184
+ name: string;
185
+ quantity?: number | undefined;
186
+ imageUrl?: string | undefined;
187
+ }[] | undefined;
188
+ }, {
189
+ products?: {
190
+ name: string;
191
+ quantity?: number | undefined;
192
+ imageUrl?: string | undefined;
193
+ }[] | undefined;
194
+ }>>;
195
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
196
+ klappay: z.ZodOptional<z.ZodObject<{
197
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
198
+ name: z.ZodString;
199
+ quantity: z.ZodOptional<z.ZodNumber>;
200
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ name: string;
203
+ quantity?: number | undefined;
204
+ imageUrl?: string | undefined;
205
+ }, {
206
+ name: string;
207
+ quantity?: number | undefined;
208
+ imageUrl?: string | undefined;
209
+ }>, "many">>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ products?: {
212
+ name: string;
213
+ quantity?: number | undefined;
214
+ imageUrl?: string | undefined;
215
+ }[] | undefined;
216
+ }, {
217
+ products?: {
218
+ name: string;
219
+ quantity?: number | undefined;
220
+ imageUrl?: string | undefined;
221
+ }[] | undefined;
222
+ }>>;
223
+ }, z.ZodUnknown, "strip">>>;
140
224
  redirectUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
141
225
  splitRecipients: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
142
226
  address: z.ZodString;
@@ -170,7 +254,35 @@ declare const CreateChargeSchema: z.ZodObject<{
170
254
  idempotencyKey?: string | undefined;
171
255
  externalRef?: string | undefined;
172
256
  source?: string | undefined;
173
- metadata?: Record<string, unknown> | undefined;
257
+ metadata?: z.objectOutputType<{
258
+ klappay: z.ZodOptional<z.ZodObject<{
259
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
260
+ name: z.ZodString;
261
+ quantity: z.ZodOptional<z.ZodNumber>;
262
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ name: string;
265
+ quantity?: number | undefined;
266
+ imageUrl?: string | undefined;
267
+ }, {
268
+ name: string;
269
+ quantity?: number | undefined;
270
+ imageUrl?: string | undefined;
271
+ }>, "many">>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ products?: {
274
+ name: string;
275
+ quantity?: number | undefined;
276
+ imageUrl?: string | undefined;
277
+ }[] | undefined;
278
+ }, {
279
+ products?: {
280
+ name: string;
281
+ quantity?: number | undefined;
282
+ imageUrl?: string | undefined;
283
+ }[] | undefined;
284
+ }>>;
285
+ }, z.ZodUnknown, "strip"> | undefined;
174
286
  redirectUrl?: string | undefined;
175
287
  splitRecipients?: {
176
288
  address: string;
@@ -188,7 +300,35 @@ declare const CreateChargeSchema: z.ZodObject<{
188
300
  idempotencyKey?: string | undefined;
189
301
  externalRef?: string | undefined;
190
302
  source?: string | undefined;
191
- metadata?: Record<string, unknown> | undefined;
303
+ metadata?: z.objectInputType<{
304
+ klappay: z.ZodOptional<z.ZodObject<{
305
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
+ name: z.ZodString;
307
+ quantity: z.ZodOptional<z.ZodNumber>;
308
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ name: string;
311
+ quantity?: number | undefined;
312
+ imageUrl?: string | undefined;
313
+ }, {
314
+ name: string;
315
+ quantity?: number | undefined;
316
+ imageUrl?: string | undefined;
317
+ }>, "many">>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ products?: {
320
+ name: string;
321
+ quantity?: number | undefined;
322
+ imageUrl?: string | undefined;
323
+ }[] | undefined;
324
+ }, {
325
+ products?: {
326
+ name: string;
327
+ quantity?: number | undefined;
328
+ imageUrl?: string | undefined;
329
+ }[] | undefined;
330
+ }>>;
331
+ }, z.ZodUnknown, "strip"> | undefined;
192
332
  redirectUrl?: string | undefined;
193
333
  splitRecipients?: {
194
334
  address: string;
@@ -232,7 +372,91 @@ declare const ChargeSchema: z.ZodObject<{
232
372
  txHash: z.ZodNullable<z.ZodString>;
233
373
  externalRef: z.ZodNullable<z.ZodString>;
234
374
  source: z.ZodNullable<z.ZodString>;
235
- metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
375
+ metadata: z.ZodNullable<z.ZodObject<{
376
+ klappay: z.ZodOptional<z.ZodObject<{
377
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
378
+ name: z.ZodString;
379
+ quantity: z.ZodOptional<z.ZodNumber>;
380
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ name: string;
383
+ quantity?: number | undefined;
384
+ imageUrl?: string | undefined;
385
+ }, {
386
+ name: string;
387
+ quantity?: number | undefined;
388
+ imageUrl?: string | undefined;
389
+ }>, "many">>;
390
+ }, "strip", z.ZodTypeAny, {
391
+ products?: {
392
+ name: string;
393
+ quantity?: number | undefined;
394
+ imageUrl?: string | undefined;
395
+ }[] | undefined;
396
+ }, {
397
+ products?: {
398
+ name: string;
399
+ quantity?: number | undefined;
400
+ imageUrl?: string | undefined;
401
+ }[] | undefined;
402
+ }>>;
403
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
404
+ klappay: z.ZodOptional<z.ZodObject<{
405
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
406
+ name: z.ZodString;
407
+ quantity: z.ZodOptional<z.ZodNumber>;
408
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ name: string;
411
+ quantity?: number | undefined;
412
+ imageUrl?: string | undefined;
413
+ }, {
414
+ name: string;
415
+ quantity?: number | undefined;
416
+ imageUrl?: string | undefined;
417
+ }>, "many">>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ products?: {
420
+ name: string;
421
+ quantity?: number | undefined;
422
+ imageUrl?: string | undefined;
423
+ }[] | undefined;
424
+ }, {
425
+ products?: {
426
+ name: string;
427
+ quantity?: number | undefined;
428
+ imageUrl?: string | undefined;
429
+ }[] | undefined;
430
+ }>>;
431
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
432
+ klappay: z.ZodOptional<z.ZodObject<{
433
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
434
+ name: z.ZodString;
435
+ quantity: z.ZodOptional<z.ZodNumber>;
436
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ name: string;
439
+ quantity?: number | undefined;
440
+ imageUrl?: string | undefined;
441
+ }, {
442
+ name: string;
443
+ quantity?: number | undefined;
444
+ imageUrl?: string | undefined;
445
+ }>, "many">>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ products?: {
448
+ name: string;
449
+ quantity?: number | undefined;
450
+ imageUrl?: string | undefined;
451
+ }[] | undefined;
452
+ }, {
453
+ products?: {
454
+ name: string;
455
+ quantity?: number | undefined;
456
+ imageUrl?: string | undefined;
457
+ }[] | undefined;
458
+ }>>;
459
+ }, z.ZodUnknown, "strip">>>;
236
460
  redirectUrl: z.ZodNullable<z.ZodString>;
237
461
  checkoutUrl: z.ZodNullable<z.ZodString>;
238
462
  splitRecipients: z.ZodArray<z.ZodObject<{
@@ -264,7 +488,35 @@ declare const ChargeSchema: z.ZodObject<{
264
488
  }[];
265
489
  externalRef: string | null;
266
490
  source: string | null;
267
- metadata: Record<string, unknown> | null;
491
+ metadata: z.objectOutputType<{
492
+ klappay: z.ZodOptional<z.ZodObject<{
493
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
494
+ name: z.ZodString;
495
+ quantity: z.ZodOptional<z.ZodNumber>;
496
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ name: string;
499
+ quantity?: number | undefined;
500
+ imageUrl?: string | undefined;
501
+ }, {
502
+ name: string;
503
+ quantity?: number | undefined;
504
+ imageUrl?: string | undefined;
505
+ }>, "many">>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ products?: {
508
+ name: string;
509
+ quantity?: number | undefined;
510
+ imageUrl?: string | undefined;
511
+ }[] | undefined;
512
+ }, {
513
+ products?: {
514
+ name: string;
515
+ quantity?: number | undefined;
516
+ imageUrl?: string | undefined;
517
+ }[] | undefined;
518
+ }>>;
519
+ }, z.ZodUnknown, "strip"> | null;
268
520
  redirectUrl: string | null;
269
521
  splitRecipients: {
270
522
  address: string;
@@ -299,7 +551,35 @@ declare const ChargeSchema: z.ZodObject<{
299
551
  }[];
300
552
  externalRef: string | null;
301
553
  source: string | null;
302
- metadata: Record<string, unknown> | null;
554
+ metadata: z.objectInputType<{
555
+ klappay: z.ZodOptional<z.ZodObject<{
556
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
557
+ name: z.ZodString;
558
+ quantity: z.ZodOptional<z.ZodNumber>;
559
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ name: string;
562
+ quantity?: number | undefined;
563
+ imageUrl?: string | undefined;
564
+ }, {
565
+ name: string;
566
+ quantity?: number | undefined;
567
+ imageUrl?: string | undefined;
568
+ }>, "many">>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ products?: {
571
+ name: string;
572
+ quantity?: number | undefined;
573
+ imageUrl?: string | undefined;
574
+ }[] | undefined;
575
+ }, {
576
+ products?: {
577
+ name: string;
578
+ quantity?: number | undefined;
579
+ imageUrl?: string | undefined;
580
+ }[] | undefined;
581
+ }>>;
582
+ }, z.ZodUnknown, "strip"> | null;
303
583
  redirectUrl: string | null;
304
584
  splitRecipients: {
305
585
  address: string;
@@ -391,7 +671,91 @@ declare const PaginatedChargesSchema: z.ZodObject<{
391
671
  txHash: z.ZodNullable<z.ZodString>;
392
672
  externalRef: z.ZodNullable<z.ZodString>;
393
673
  source: z.ZodNullable<z.ZodString>;
394
- metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
674
+ metadata: z.ZodNullable<z.ZodObject<{
675
+ klappay: z.ZodOptional<z.ZodObject<{
676
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
677
+ name: z.ZodString;
678
+ quantity: z.ZodOptional<z.ZodNumber>;
679
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ name: string;
682
+ quantity?: number | undefined;
683
+ imageUrl?: string | undefined;
684
+ }, {
685
+ name: string;
686
+ quantity?: number | undefined;
687
+ imageUrl?: string | undefined;
688
+ }>, "many">>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ products?: {
691
+ name: string;
692
+ quantity?: number | undefined;
693
+ imageUrl?: string | undefined;
694
+ }[] | undefined;
695
+ }, {
696
+ products?: {
697
+ name: string;
698
+ quantity?: number | undefined;
699
+ imageUrl?: string | undefined;
700
+ }[] | undefined;
701
+ }>>;
702
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
703
+ klappay: z.ZodOptional<z.ZodObject<{
704
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
705
+ name: z.ZodString;
706
+ quantity: z.ZodOptional<z.ZodNumber>;
707
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ name: string;
710
+ quantity?: number | undefined;
711
+ imageUrl?: string | undefined;
712
+ }, {
713
+ name: string;
714
+ quantity?: number | undefined;
715
+ imageUrl?: string | undefined;
716
+ }>, "many">>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ products?: {
719
+ name: string;
720
+ quantity?: number | undefined;
721
+ imageUrl?: string | undefined;
722
+ }[] | undefined;
723
+ }, {
724
+ products?: {
725
+ name: string;
726
+ quantity?: number | undefined;
727
+ imageUrl?: string | undefined;
728
+ }[] | undefined;
729
+ }>>;
730
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
731
+ klappay: z.ZodOptional<z.ZodObject<{
732
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
733
+ name: z.ZodString;
734
+ quantity: z.ZodOptional<z.ZodNumber>;
735
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ name: string;
738
+ quantity?: number | undefined;
739
+ imageUrl?: string | undefined;
740
+ }, {
741
+ name: string;
742
+ quantity?: number | undefined;
743
+ imageUrl?: string | undefined;
744
+ }>, "many">>;
745
+ }, "strip", z.ZodTypeAny, {
746
+ products?: {
747
+ name: string;
748
+ quantity?: number | undefined;
749
+ imageUrl?: string | undefined;
750
+ }[] | undefined;
751
+ }, {
752
+ products?: {
753
+ name: string;
754
+ quantity?: number | undefined;
755
+ imageUrl?: string | undefined;
756
+ }[] | undefined;
757
+ }>>;
758
+ }, z.ZodUnknown, "strip">>>;
395
759
  redirectUrl: z.ZodNullable<z.ZodString>;
396
760
  checkoutUrl: z.ZodNullable<z.ZodString>;
397
761
  splitRecipients: z.ZodArray<z.ZodObject<{
@@ -423,7 +787,35 @@ declare const PaginatedChargesSchema: z.ZodObject<{
423
787
  }[];
424
788
  externalRef: string | null;
425
789
  source: string | null;
426
- metadata: Record<string, unknown> | null;
790
+ metadata: z.objectOutputType<{
791
+ klappay: z.ZodOptional<z.ZodObject<{
792
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
793
+ name: z.ZodString;
794
+ quantity: z.ZodOptional<z.ZodNumber>;
795
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ name: string;
798
+ quantity?: number | undefined;
799
+ imageUrl?: string | undefined;
800
+ }, {
801
+ name: string;
802
+ quantity?: number | undefined;
803
+ imageUrl?: string | undefined;
804
+ }>, "many">>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ products?: {
807
+ name: string;
808
+ quantity?: number | undefined;
809
+ imageUrl?: string | undefined;
810
+ }[] | undefined;
811
+ }, {
812
+ products?: {
813
+ name: string;
814
+ quantity?: number | undefined;
815
+ imageUrl?: string | undefined;
816
+ }[] | undefined;
817
+ }>>;
818
+ }, z.ZodUnknown, "strip"> | null;
427
819
  redirectUrl: string | null;
428
820
  splitRecipients: {
429
821
  address: string;
@@ -458,7 +850,35 @@ declare const PaginatedChargesSchema: z.ZodObject<{
458
850
  }[];
459
851
  externalRef: string | null;
460
852
  source: string | null;
461
- metadata: Record<string, unknown> | null;
853
+ metadata: z.objectInputType<{
854
+ klappay: z.ZodOptional<z.ZodObject<{
855
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
856
+ name: z.ZodString;
857
+ quantity: z.ZodOptional<z.ZodNumber>;
858
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ name: string;
861
+ quantity?: number | undefined;
862
+ imageUrl?: string | undefined;
863
+ }, {
864
+ name: string;
865
+ quantity?: number | undefined;
866
+ imageUrl?: string | undefined;
867
+ }>, "many">>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ products?: {
870
+ name: string;
871
+ quantity?: number | undefined;
872
+ imageUrl?: string | undefined;
873
+ }[] | undefined;
874
+ }, {
875
+ products?: {
876
+ name: string;
877
+ quantity?: number | undefined;
878
+ imageUrl?: string | undefined;
879
+ }[] | undefined;
880
+ }>>;
881
+ }, z.ZodUnknown, "strip"> | null;
462
882
  redirectUrl: string | null;
463
883
  splitRecipients: {
464
884
  address: string;
@@ -497,7 +917,35 @@ declare const PaginatedChargesSchema: z.ZodObject<{
497
917
  }[];
498
918
  externalRef: string | null;
499
919
  source: string | null;
500
- metadata: Record<string, unknown> | null;
920
+ metadata: z.objectOutputType<{
921
+ klappay: z.ZodOptional<z.ZodObject<{
922
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
923
+ name: z.ZodString;
924
+ quantity: z.ZodOptional<z.ZodNumber>;
925
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ name: string;
928
+ quantity?: number | undefined;
929
+ imageUrl?: string | undefined;
930
+ }, {
931
+ name: string;
932
+ quantity?: number | undefined;
933
+ imageUrl?: string | undefined;
934
+ }>, "many">>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ products?: {
937
+ name: string;
938
+ quantity?: number | undefined;
939
+ imageUrl?: string | undefined;
940
+ }[] | undefined;
941
+ }, {
942
+ products?: {
943
+ name: string;
944
+ quantity?: number | undefined;
945
+ imageUrl?: string | undefined;
946
+ }[] | undefined;
947
+ }>>;
948
+ }, z.ZodUnknown, "strip"> | null;
501
949
  redirectUrl: string | null;
502
950
  splitRecipients: {
503
951
  address: string;
@@ -536,7 +984,35 @@ declare const PaginatedChargesSchema: z.ZodObject<{
536
984
  }[];
537
985
  externalRef: string | null;
538
986
  source: string | null;
539
- metadata: Record<string, unknown> | null;
987
+ metadata: z.objectInputType<{
988
+ klappay: z.ZodOptional<z.ZodObject<{
989
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
990
+ name: z.ZodString;
991
+ quantity: z.ZodOptional<z.ZodNumber>;
992
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
993
+ }, "strip", z.ZodTypeAny, {
994
+ name: string;
995
+ quantity?: number | undefined;
996
+ imageUrl?: string | undefined;
997
+ }, {
998
+ name: string;
999
+ quantity?: number | undefined;
1000
+ imageUrl?: string | undefined;
1001
+ }>, "many">>;
1002
+ }, "strip", z.ZodTypeAny, {
1003
+ products?: {
1004
+ name: string;
1005
+ quantity?: number | undefined;
1006
+ imageUrl?: string | undefined;
1007
+ }[] | undefined;
1008
+ }, {
1009
+ products?: {
1010
+ name: string;
1011
+ quantity?: number | undefined;
1012
+ imageUrl?: string | undefined;
1013
+ }[] | undefined;
1014
+ }>>;
1015
+ }, z.ZodUnknown, "strip"> | null;
540
1016
  redirectUrl: string | null;
541
1017
  splitRecipients: {
542
1018
  address: string;
@@ -578,6 +1054,135 @@ declare const GetChargeQrCodeQuerySchema: z.ZodObject<{
578
1054
  type GetChargeQrCodeQuery = z.infer<typeof GetChargeQrCodeQuerySchema>;
579
1055
  type GetChargeQrCodeQueryRequest = z.input<typeof GetChargeQrCodeQuerySchema>;
580
1056
 
1057
+ declare const CHECKOUT_PRODUCTS_MAX = 20;
1058
+ declare const CheckoutProductSchema: z.ZodObject<{
1059
+ name: z.ZodString;
1060
+ quantity: z.ZodOptional<z.ZodNumber>;
1061
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1062
+ }, "strip", z.ZodTypeAny, {
1063
+ name: string;
1064
+ quantity?: number | undefined;
1065
+ imageUrl?: string | undefined;
1066
+ }, {
1067
+ name: string;
1068
+ quantity?: number | undefined;
1069
+ imageUrl?: string | undefined;
1070
+ }>;
1071
+ type CheckoutProduct = z.infer<typeof CheckoutProductSchema>;
1072
+ declare const KlappayCheckoutMetadataSchema: z.ZodObject<{
1073
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
1074
+ name: z.ZodString;
1075
+ quantity: z.ZodOptional<z.ZodNumber>;
1076
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ name: string;
1079
+ quantity?: number | undefined;
1080
+ imageUrl?: string | undefined;
1081
+ }, {
1082
+ name: string;
1083
+ quantity?: number | undefined;
1084
+ imageUrl?: string | undefined;
1085
+ }>, "many">>;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ products?: {
1088
+ name: string;
1089
+ quantity?: number | undefined;
1090
+ imageUrl?: string | undefined;
1091
+ }[] | undefined;
1092
+ }, {
1093
+ products?: {
1094
+ name: string;
1095
+ quantity?: number | undefined;
1096
+ imageUrl?: string | undefined;
1097
+ }[] | undefined;
1098
+ }>;
1099
+ type KlappayCheckoutMetadata = z.infer<typeof KlappayCheckoutMetadataSchema>;
1100
+ declare const MetadataWithKlappaySchema: z.ZodObject<{
1101
+ klappay: z.ZodOptional<z.ZodObject<{
1102
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
1103
+ name: z.ZodString;
1104
+ quantity: z.ZodOptional<z.ZodNumber>;
1105
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ name: string;
1108
+ quantity?: number | undefined;
1109
+ imageUrl?: string | undefined;
1110
+ }, {
1111
+ name: string;
1112
+ quantity?: number | undefined;
1113
+ imageUrl?: string | undefined;
1114
+ }>, "many">>;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ products?: {
1117
+ name: string;
1118
+ quantity?: number | undefined;
1119
+ imageUrl?: string | undefined;
1120
+ }[] | undefined;
1121
+ }, {
1122
+ products?: {
1123
+ name: string;
1124
+ quantity?: number | undefined;
1125
+ imageUrl?: string | undefined;
1126
+ }[] | undefined;
1127
+ }>>;
1128
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1129
+ klappay: z.ZodOptional<z.ZodObject<{
1130
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
1131
+ name: z.ZodString;
1132
+ quantity: z.ZodOptional<z.ZodNumber>;
1133
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ name: string;
1136
+ quantity?: number | undefined;
1137
+ imageUrl?: string | undefined;
1138
+ }, {
1139
+ name: string;
1140
+ quantity?: number | undefined;
1141
+ imageUrl?: string | undefined;
1142
+ }>, "many">>;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ products?: {
1145
+ name: string;
1146
+ quantity?: number | undefined;
1147
+ imageUrl?: string | undefined;
1148
+ }[] | undefined;
1149
+ }, {
1150
+ products?: {
1151
+ name: string;
1152
+ quantity?: number | undefined;
1153
+ imageUrl?: string | undefined;
1154
+ }[] | undefined;
1155
+ }>>;
1156
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1157
+ klappay: z.ZodOptional<z.ZodObject<{
1158
+ products: z.ZodOptional<z.ZodArray<z.ZodObject<{
1159
+ name: z.ZodString;
1160
+ quantity: z.ZodOptional<z.ZodNumber>;
1161
+ imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ name: string;
1164
+ quantity?: number | undefined;
1165
+ imageUrl?: string | undefined;
1166
+ }, {
1167
+ name: string;
1168
+ quantity?: number | undefined;
1169
+ imageUrl?: string | undefined;
1170
+ }>, "many">>;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ products?: {
1173
+ name: string;
1174
+ quantity?: number | undefined;
1175
+ imageUrl?: string | undefined;
1176
+ }[] | undefined;
1177
+ }, {
1178
+ products?: {
1179
+ name: string;
1180
+ quantity?: number | undefined;
1181
+ imageUrl?: string | undefined;
1182
+ }[] | undefined;
1183
+ }>>;
1184
+ }, z.ZodUnknown, "strip">>;
1185
+
581
1186
  declare const SplitDistributionStatusSchema: z.ZodEnum<["pending", "processing", "completed", "failed"]>;
582
1187
  type SplitDistributionStatus = z.infer<typeof SplitDistributionStatusSchema>;
583
1188
  declare const PendingDistributionRecipientSchema: z.ZodObject<{
@@ -1847,4 +2452,4 @@ declare const CapabilitiesSchema: z.ZodObject<{
1847
2452
  }>;
1848
2453
  type Capabilities = z.infer<typeof CapabilitiesSchema>;
1849
2454
 
1850
- export { API_KEY_SCOPES, type AcceptedPayment, AcceptedPaymentSchema, type ApiKeyScope, ApiKeyScopeSchema, CHARGE_ACCEPTED_PAYMENTS_MAX, CHARGE_AMOUNT_MAX, CHARGE_EXPIRES_IN_MAX_SECONDS, CHARGE_EXPIRES_IN_MIN_SECONDS, CHARGE_SPLIT_RECIPIENTS_MAX, type Capabilities, CapabilitiesSchema, type Charge, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, type CreateWebhookInput, type CreateWebhookRequest, CreateWebhookSchema, type DistributionsDateField, DistributionsDateFieldSchema, type DistributionsMetricField, DistributionsMetricFieldSchema, type DistributionsQueryField, DistributionsQueryFieldSchema, EVENT_CATEGORY_MAP, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, type GetChargeQrCodeQuery, type GetChargeQrCodeQueryRequest, GetChargeQrCodeQuerySchema, type Health, HealthSchema, type ListChargesInput, type ListChargesRequest, ListChargesSchema, type ListWebhookDeliveriesInput, type ListWebhookDeliveriesRequest, ListWebhookDeliveriesSchema, type ListenPendingDistributionsQuery, ListenPendingDistributionsQuerySchema, MAX_METRICS_QUERY_DATE_RANGE_DAYS, METRICS_QUERY_DEFAULT_ROW_LIMIT, METRICS_QUERY_MAX_FILTERS, METRICS_QUERY_MAX_GROUP_BY, METRICS_QUERY_MAX_METRICS, METRICS_QUERY_MAX_ROW_LIMIT, type MetricsAggregation, MetricsAggregationSchema, type MetricsDateGranularity, MetricsDateGranularitySchema, type MetricsFilterOperator, MetricsFilterOperatorSchema, type MetricsQuery, type MetricsQueryRequest, type MetricsQueryResult, type MetricsQueryResultRow, MetricsQueryResultRowSchema, MetricsQueryResultSchema, MetricsQuerySchema, type MetricsResource, MetricsResourceSchema, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, PAGINATION_LIMIT_DEFAULT, PAGINATION_LIMIT_MAX, PAGINATION_LIMIT_MIN, type PaginatedCharges, PaginatedChargesSchema, type PaginatedPendingDistributions, PaginatedPendingDistributionsSchema, type PaginatedWebhookDeliveries, PaginatedWebhookDeliveriesSchema, type PaginationQuery, type PaginationQueryRequest, PaginationQuerySchema, type PendingDistribution, type PendingDistributionEvent, PendingDistributionEventSchema, PendingDistributionRecipientSchema, PendingDistributionSchema, type SandboxTriggerInput, SandboxTriggerSchema, type SettlementStatus, SettlementStatusSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, type SplitRecipient, SplitRecipientSchema, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, type TransactionSource, TransactionSourceSchema, type TransactionsDateField, TransactionsDateFieldSchema, type TransactionsMetricField, TransactionsMetricFieldSchema, type TransactionsQueryField, TransactionsQueryFieldSchema, type TriggerableChargeEvent, TriggerableChargeEventSchema, type TypedWebhookPayload, WEBHOOK_EVENTS_WILDCARD, WEBHOOK_EVENT_CATEGORIES, type Webhook, type WebhookCategory, WebhookCategorySchema, type WebhookDelivery, WebhookDeliveryEventTypeSchema, WebhookDeliverySchema, type WebhookDeliveryStatus, WebhookDeliveryStatusSchema, type WebhookEventDataMap, type WebhookEventType, WebhookEventTypeSchema, type WebhookHealthEventData, type WebhookListItem, WebhookListItemSchema, type WebhookPayload, WebhookPayloadSchema, WebhookSchema, paginatedSchema };
2455
+ export { API_KEY_SCOPES, type AcceptedPayment, AcceptedPaymentSchema, type ApiKeyScope, ApiKeyScopeSchema, CHARGE_ACCEPTED_PAYMENTS_MAX, CHARGE_AMOUNT_MAX, CHARGE_EXPIRES_IN_MAX_SECONDS, CHARGE_EXPIRES_IN_MIN_SECONDS, CHARGE_SPLIT_RECIPIENTS_MAX, CHECKOUT_PRODUCTS_MAX, type Capabilities, CapabilitiesSchema, type Charge, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CheckoutProduct, CheckoutProductSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, type CreateWebhookInput, type CreateWebhookRequest, CreateWebhookSchema, type DistributionsDateField, DistributionsDateFieldSchema, type DistributionsMetricField, DistributionsMetricFieldSchema, type DistributionsQueryField, DistributionsQueryFieldSchema, EVENT_CATEGORY_MAP, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, type GetChargeQrCodeQuery, type GetChargeQrCodeQueryRequest, GetChargeQrCodeQuerySchema, type Health, HealthSchema, type KlappayCheckoutMetadata, KlappayCheckoutMetadataSchema, type ListChargesInput, type ListChargesRequest, ListChargesSchema, type ListWebhookDeliveriesInput, type ListWebhookDeliveriesRequest, ListWebhookDeliveriesSchema, type ListenPendingDistributionsQuery, ListenPendingDistributionsQuerySchema, MAX_METRICS_QUERY_DATE_RANGE_DAYS, METRICS_QUERY_DEFAULT_ROW_LIMIT, METRICS_QUERY_MAX_FILTERS, METRICS_QUERY_MAX_GROUP_BY, METRICS_QUERY_MAX_METRICS, METRICS_QUERY_MAX_ROW_LIMIT, MetadataWithKlappaySchema, type MetricsAggregation, MetricsAggregationSchema, type MetricsDateGranularity, MetricsDateGranularitySchema, type MetricsFilterOperator, MetricsFilterOperatorSchema, type MetricsQuery, type MetricsQueryRequest, type MetricsQueryResult, type MetricsQueryResultRow, MetricsQueryResultRowSchema, MetricsQueryResultSchema, MetricsQuerySchema, type MetricsResource, MetricsResourceSchema, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, PAGINATION_LIMIT_DEFAULT, PAGINATION_LIMIT_MAX, PAGINATION_LIMIT_MIN, type PaginatedCharges, PaginatedChargesSchema, type PaginatedPendingDistributions, PaginatedPendingDistributionsSchema, type PaginatedWebhookDeliveries, PaginatedWebhookDeliveriesSchema, type PaginationQuery, type PaginationQueryRequest, PaginationQuerySchema, type PendingDistribution, type PendingDistributionEvent, PendingDistributionEventSchema, PendingDistributionRecipientSchema, PendingDistributionSchema, type SandboxTriggerInput, SandboxTriggerSchema, type SettlementStatus, SettlementStatusSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, type SplitRecipient, SplitRecipientSchema, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, type TransactionSource, TransactionSourceSchema, type TransactionsDateField, TransactionsDateFieldSchema, type TransactionsMetricField, TransactionsMetricFieldSchema, type TransactionsQueryField, TransactionsQueryFieldSchema, type TriggerableChargeEvent, TriggerableChargeEventSchema, type TypedWebhookPayload, WEBHOOK_EVENTS_WILDCARD, WEBHOOK_EVENT_CATEGORIES, type Webhook, type WebhookCategory, WebhookCategorySchema, type WebhookDelivery, WebhookDeliveryEventTypeSchema, WebhookDeliverySchema, type WebhookDeliveryStatus, WebhookDeliveryStatusSchema, type WebhookEventDataMap, type WebhookEventType, WebhookEventTypeSchema, type WebhookHealthEventData, type WebhookListItem, WebhookListItemSchema, type WebhookPayload, WebhookPayloadSchema, WebhookSchema, paginatedSchema };