@ssyazilim/ss-shopping-schemas 0.1.78 → 0.1.80
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.cjs +577 -643
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +793 -1167
- package/dist/index.d.ts +793 -1167
- package/dist/index.js +534 -609
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.cjs
CHANGED
|
@@ -53,7 +53,8 @@ var ApiSuccessSchema = registry.register(
|
|
|
53
53
|
"ApiSuccess",
|
|
54
54
|
z52.z.object({
|
|
55
55
|
success: z52.z.object({
|
|
56
|
-
message: z52.z.string().meta({ description: "Success message" })
|
|
56
|
+
message: z52.z.string().meta({ description: "Success message" }),
|
|
57
|
+
data: z52.z.any()
|
|
57
58
|
})
|
|
58
59
|
})
|
|
59
60
|
);
|
|
@@ -328,11 +329,8 @@ var PRICE = (locale = "tr") => {
|
|
|
328
329
|
var PRODUCT_PROPERTIES = () => {
|
|
329
330
|
return z52.z.object({
|
|
330
331
|
hidePrice: z52.z.boolean().meta({ examples: [false] }),
|
|
331
|
-
// prettier-ignore
|
|
332
332
|
isFeatured: z52.z.boolean().meta({ examples: [false] }),
|
|
333
|
-
// prettier-ignore
|
|
334
333
|
isShippingFree: z52.z.boolean().meta({ examples: [false] })
|
|
335
|
-
// prettier-ignore
|
|
336
334
|
});
|
|
337
335
|
};
|
|
338
336
|
var ADD_PRODUCT = (locale = "tr") => {
|
|
@@ -369,52 +367,16 @@ var ADD_BRANDS = (locale = "tr") => z52.z.array(ADD_BRAND(locale));
|
|
|
369
367
|
var AddBrandSchema = registry.register("Brand", ADD_BRAND());
|
|
370
368
|
registry.register("AddBrands", ADD_BRANDS());
|
|
371
369
|
var UpdateBrandSchema = registry.register("UpdateBrand", ADD_BRAND().partial());
|
|
372
|
-
|
|
373
|
-
// src/utils/validations.ts
|
|
374
|
-
var isValidCard = (card) => {
|
|
375
|
-
const digits = card.replace(/\s/g, "");
|
|
376
|
-
let sum = 0;
|
|
377
|
-
let shouldDouble = false;
|
|
378
|
-
for (let i = digits.length - 1; i >= 0; i--) {
|
|
379
|
-
let digit = parseInt(digits[i]);
|
|
380
|
-
if (shouldDouble) {
|
|
381
|
-
digit *= 2;
|
|
382
|
-
if (digit > 9) digit -= 9;
|
|
383
|
-
}
|
|
384
|
-
sum += digit;
|
|
385
|
-
shouldDouble = !shouldDouble;
|
|
386
|
-
}
|
|
387
|
-
return sum % 10 === 0;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
// src/schemas/card/validation.ts
|
|
391
370
|
var messages6 = { tr: notifications, en: notifications2, ru: notifications3, ar: notifications4, fa: notifications5 };
|
|
392
|
-
var ADD_CARD = (locale = "tr") => {
|
|
393
|
-
const m = messages6[locale];
|
|
394
|
-
return z52.z.object({
|
|
395
|
-
email: z52.z.email({ message: m.public_forms_validations_email }).meta({ examples: ["no-reply@ssyazilim.com"] }),
|
|
396
|
-
card: z52.z.object({
|
|
397
|
-
cardAlias: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["ALISARI"] }),
|
|
398
|
-
cardHolderName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["ALI SARI"] }),
|
|
399
|
-
cardNumber: z52.z.string().refine(isValidCard, { message: m.public_forms_validations_cardNumber }).meta({ examples: ["5170410000000004"] }),
|
|
400
|
-
expireMonth: z52.z.string().min(1, { message: m.public_forms_validations_minLength(2) }).max(2, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["10"] }),
|
|
401
|
-
expireYear: z52.z.string().min(4, { message: m.public_forms_validations_minLength(2) }).max(4, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["2030"] })
|
|
402
|
-
})
|
|
403
|
-
});
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
// src/schemas/card/schema.ts
|
|
407
|
-
var AddCardSchema = registry.register("AddCard", ADD_CARD());
|
|
408
|
-
var messages7 = { tr: notifications, en: notifications2, ru: notifications3, ar: notifications4, fa: notifications5 };
|
|
409
371
|
var SET_QUANTITY = (locale = "tr") => {
|
|
410
|
-
const m =
|
|
372
|
+
const m = messages6[locale];
|
|
411
373
|
return z52.z.object({
|
|
412
374
|
itemId: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }),
|
|
413
375
|
quantity: z52.z.number({ message: m.public_forms_validations_mustNumber }).int({ message: m.public_forms_validations_mustNumberInteger }).refine((n) => n !== 0, { message: m.public_forms_validations_mustNumber }).meta({ examples: [1, -1] })
|
|
414
376
|
});
|
|
415
377
|
};
|
|
416
378
|
var ADD_CART = (locale = "tr") => {
|
|
417
|
-
const m =
|
|
379
|
+
const m = messages6[locale];
|
|
418
380
|
return z52.z.object({
|
|
419
381
|
productId: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }),
|
|
420
382
|
variantId: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }),
|
|
@@ -425,9 +387,9 @@ var ADD_CART = (locale = "tr") => {
|
|
|
425
387
|
// src/schemas/cart/schema.ts
|
|
426
388
|
var AddToCartSchema = registry.register("AddToCart", ADD_CART());
|
|
427
389
|
var SetQuantitySchema = registry.register("SetQuantity", SET_QUANTITY());
|
|
428
|
-
var
|
|
390
|
+
var messages7 = { tr: notifications, en: notifications2, ru: notifications3, ar: notifications4, fa: notifications5 };
|
|
429
391
|
var ADD_CATEGORY = (locale = "tr") => {
|
|
430
|
-
const m =
|
|
392
|
+
const m = messages7[locale];
|
|
431
393
|
return z52.z.object({
|
|
432
394
|
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["K\u0131yafet ve Aksesuarlar"] }),
|
|
433
395
|
parentId: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }).nullable().meta({ examples: ["66a1bcf0ff9245b28d054001"] }),
|
|
@@ -445,10 +407,10 @@ var ADD_CATEGORIES = (locale = "tr") => z52.z.array(ADD_CATEGORY(locale));
|
|
|
445
407
|
var CategorySchema = registry.register("Category", ADD_CATEGORY());
|
|
446
408
|
registry.register("UpdateCategory", ADD_CATEGORY().partial());
|
|
447
409
|
registry.register("AddCategory", ADD_CATEGORIES());
|
|
448
|
-
var
|
|
410
|
+
var messages8 = { tr: notifications, en: notifications2, ru: notifications3, ar: notifications4, fa: notifications5 };
|
|
449
411
|
var UPDATE_COMPANY = (locale = "tr") => deepPartial(ADD_COMPANY(locale));
|
|
450
412
|
var ADD_COMPANY_ADDRESS = (locale = "tr") => {
|
|
451
|
-
const m =
|
|
413
|
+
const m = messages8[locale];
|
|
452
414
|
return z52.z.object({
|
|
453
415
|
isCompany: z52.z.boolean().meta({ examples: [false] }),
|
|
454
416
|
companyName: z52.z.string().optional().meta({ examples: ["Varyant Et & Bal\u0131k Restaurant"] }),
|
|
@@ -467,7 +429,7 @@ var ADD_COMPANY_ADDRESS = (locale = "tr") => {
|
|
|
467
429
|
});
|
|
468
430
|
};
|
|
469
431
|
var ADD_COMPANY_SOCIAL_MEDIA = (locale = "tr") => {
|
|
470
|
-
const m =
|
|
432
|
+
const m = messages8[locale];
|
|
471
433
|
return z52.z.object({
|
|
472
434
|
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Facebook"] }),
|
|
473
435
|
link: z52.z.url({ message: m.public_forms_validations_url }).meta({ examples: ["https://www.facebook.com"] }),
|
|
@@ -475,7 +437,7 @@ var ADD_COMPANY_SOCIAL_MEDIA = (locale = "tr") => {
|
|
|
475
437
|
});
|
|
476
438
|
};
|
|
477
439
|
var ADD_COMPANY_PAYMENT = (locale = "tr") => {
|
|
478
|
-
const m =
|
|
440
|
+
const m = messages8[locale];
|
|
479
441
|
return z52.z.object({
|
|
480
442
|
status: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["{'_id':'0','name':'IBAN'}"] }),
|
|
481
443
|
content: z52.z.any().meta({ examples: ["<p>Halil G\xFCr</p>"] })
|
|
@@ -501,7 +463,7 @@ var ADD_COMPANY_PROPERTIES_HOME_PAGE = () => {
|
|
|
501
463
|
});
|
|
502
464
|
};
|
|
503
465
|
var ADD_COMPANY_PROPERTIES_PAYMENT_SETTINGS = (locale = "tr") => {
|
|
504
|
-
const m =
|
|
466
|
+
const m = messages8[locale];
|
|
505
467
|
return z52.z.object({
|
|
506
468
|
cashDiscount: z52.z.number({ message: m.public_forms_validations_mustNumber }).int({ message: m.public_forms_validations_mustNumberInteger }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: 0 }),
|
|
507
469
|
doorToDoor: z52.z.object({
|
|
@@ -512,7 +474,7 @@ var ADD_COMPANY_PROPERTIES_PAYMENT_SETTINGS = (locale = "tr") => {
|
|
|
512
474
|
});
|
|
513
475
|
};
|
|
514
476
|
var ADD_COMPANY_PROPERTIES_PRODUCT_SETTINGS = (locale = "tr") => {
|
|
515
|
-
const m =
|
|
477
|
+
const m = messages8[locale];
|
|
516
478
|
return z52.z.object({
|
|
517
479
|
callMe: z52.z.boolean(),
|
|
518
480
|
addFavorites: z52.z.boolean(),
|
|
@@ -543,7 +505,7 @@ var ADD_COMPANY_PROPERTIES = (locale = "tr") => {
|
|
|
543
505
|
});
|
|
544
506
|
};
|
|
545
507
|
var ADD_COMPANY_MAIL_OPTIONS = (locale = "tr") => {
|
|
546
|
-
const m =
|
|
508
|
+
const m = messages8[locale];
|
|
547
509
|
return z52.z.object({
|
|
548
510
|
user: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["no-reply@example.com"] }),
|
|
549
511
|
password: z52.z.string().min(8, { message: m.public_forms_validations_minLength(8) }).max(64, { message: m.public_forms_validations_maxLength(64) }).meta({ examples: ["12345678"] }),
|
|
@@ -557,7 +519,7 @@ var ADD_COMPANY_MAIL_OPTIONS = (locale = "tr") => {
|
|
|
557
519
|
});
|
|
558
520
|
};
|
|
559
521
|
var ADD_COMPANY_COMMUNICATION_OPTIONS = (locale = "tr") => {
|
|
560
|
-
const m =
|
|
522
|
+
const m = messages8[locale];
|
|
561
523
|
return z52.z.object({
|
|
562
524
|
method: z52.z.enum(["none", "netgsm", "twilio"]).meta({ examples: ["none"] }),
|
|
563
525
|
netgsm: z52.z.object({
|
|
@@ -572,7 +534,7 @@ var ADD_COMPANY_COMMUNICATION_OPTIONS = (locale = "tr") => {
|
|
|
572
534
|
});
|
|
573
535
|
};
|
|
574
536
|
var ADD_COMPANY_SHIPPING_OPTIONS = (locale = "tr") => {
|
|
575
|
-
const m =
|
|
537
|
+
const m = messages8[locale];
|
|
576
538
|
return z52.z.object({
|
|
577
539
|
method: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["standard"] }),
|
|
578
540
|
shipment: z52.z.object({
|
|
@@ -602,7 +564,7 @@ var ADD_COMPANY_SHIPPING_OPTIONS = (locale = "tr") => {
|
|
|
602
564
|
});
|
|
603
565
|
};
|
|
604
566
|
var ADD_COMPANY = (locale = "tr") => {
|
|
605
|
-
const m =
|
|
567
|
+
const m = messages8[locale];
|
|
606
568
|
return z52.z.object({
|
|
607
569
|
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Opia Heart"] }),
|
|
608
570
|
baseUrl: z52.z.url({ message: m.public_forms_validations_url }).optional().meta({ examples: ["https://opiaheart.com"] }),
|
|
@@ -620,8 +582,14 @@ var ADD_COMPANY = (locale = "tr") => {
|
|
|
620
582
|
shippingOptions: ADD_COMPANY_SHIPPING_OPTIONS()
|
|
621
583
|
});
|
|
622
584
|
};
|
|
585
|
+
var UPDATE_TAX = (locale = "tr") => {
|
|
586
|
+
const m = messages8[locale];
|
|
587
|
+
return z52.z.object({
|
|
588
|
+
tax: z52.z.number({ message: m.public_forms_validations_mustNumber }).int({ message: m.public_forms_validations_mustNumberInteger }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [20] })
|
|
589
|
+
});
|
|
590
|
+
};
|
|
623
591
|
var ADD_SOCIAL_MEDIA_LINKS = (locale = "tr") => {
|
|
624
|
-
const m =
|
|
592
|
+
const m = messages8[locale];
|
|
625
593
|
return z52.z.object({
|
|
626
594
|
facebook: z52.z.url({ message: m.public_forms_validations_url }).or(z52.z.literal("")),
|
|
627
595
|
twitter: z52.z.url({ message: m.public_forms_validations_url }).or(z52.z.literal("")),
|
|
@@ -653,7 +621,10 @@ registry.register(
|
|
|
653
621
|
"CompanyPropertiesOrderSettings",
|
|
654
622
|
ADD_COMPANY_PROPERTIES_ORDER_SETTINGS()
|
|
655
623
|
);
|
|
656
|
-
registry.register(
|
|
624
|
+
registry.register(
|
|
625
|
+
"CompanyProperties",
|
|
626
|
+
ADD_COMPANY_PROPERTIES()
|
|
627
|
+
);
|
|
657
628
|
registry.register(
|
|
658
629
|
"CompanyMailOptions",
|
|
659
630
|
ADD_COMPANY_MAIL_OPTIONS()
|
|
@@ -662,10 +633,11 @@ registry.register(
|
|
|
662
633
|
"CompanyShippingOptions",
|
|
663
634
|
ADD_COMPANY_SHIPPING_OPTIONS()
|
|
664
635
|
);
|
|
636
|
+
var UpdateTaxSchema = registry.register("UpdateTax", UPDATE_TAX());
|
|
665
637
|
var AddCompanySchema = registry.register("AddCompany", ADD_COMPANY());
|
|
666
638
|
var UpdateCompanySchema = registry.register("UpdateCompany", UPDATE_COMPANY());
|
|
667
639
|
var EXTERNAL_IYZICO = z52.z.object({
|
|
668
|
-
lang: z52.z.string().meta({ examples: ["
|
|
640
|
+
lang: z52.z.string().meta({ examples: ["en"] }),
|
|
669
641
|
url: z52.z.url().meta({ examples: ["https://sandbox-api.iyzipay.com"] }),
|
|
670
642
|
apiKey: z52.z.string(),
|
|
671
643
|
secretKey: z52.z.string()
|
|
@@ -718,9 +690,9 @@ registry.register("ExternalCrisp", EXTERNAL_CRISP);
|
|
|
718
690
|
registry.register("ExternalGeliver", EXTERNAL_GELIVER);
|
|
719
691
|
var AddExternalSchema = registry.register("AddExternal", ADD_EXTERNAL);
|
|
720
692
|
var UpdateExternalSchema = registry.register("UpdateExternal", ADD_EXTERNAL.partial());
|
|
721
|
-
var
|
|
693
|
+
var messages9 = { tr: notifications, en: notifications2, ru: notifications3, ar: notifications4, fa: notifications5 };
|
|
722
694
|
var CONTACT_ME = (locale = "tr") => {
|
|
723
|
-
const m =
|
|
695
|
+
const m = messages9[locale];
|
|
724
696
|
return z52.z.object({
|
|
725
697
|
firstName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
726
698
|
lastName: z52.z.string().optional(),
|
|
@@ -732,7 +704,7 @@ var CONTACT_ME = (locale = "tr") => {
|
|
|
732
704
|
});
|
|
733
705
|
};
|
|
734
706
|
var CONTACT_ME_ERROR = (locale = "tr") => {
|
|
735
|
-
const m =
|
|
707
|
+
const m = messages9[locale];
|
|
736
708
|
return z52.z.object({
|
|
737
709
|
firstName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
738
710
|
lastName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
@@ -743,7 +715,7 @@ var CONTACT_ME_ERROR = (locale = "tr") => {
|
|
|
743
715
|
});
|
|
744
716
|
};
|
|
745
717
|
var CONTACT_ME_RESUME = (locale = "tr") => {
|
|
746
|
-
const m =
|
|
718
|
+
const m = messages9[locale];
|
|
747
719
|
return z52.z.object({
|
|
748
720
|
firstName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
749
721
|
lastName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
@@ -763,7 +735,7 @@ var CHECK_SMTP = z52.z.object({
|
|
|
763
735
|
from: z52.z.string().meta({ examples: ["SS-TEST | <no-reply@ssyazilim.com>"] })
|
|
764
736
|
});
|
|
765
737
|
var CHECK_PRICE_FILTER = (locale = "tr") => {
|
|
766
|
-
const m =
|
|
738
|
+
const m = messages9[locale];
|
|
767
739
|
return z52.z.object({
|
|
768
740
|
minPrice: z52.z.number({ message: m.public_forms_validations_mustNumber }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }),
|
|
769
741
|
maxPrice: z52.z.number({ message: m.public_forms_validations_mustNumber }).nonnegative({ message: m.public_forms_validations_mustNumberPositive })
|
|
@@ -869,23 +841,40 @@ var PresignedGetObjectSchema = registry.register(
|
|
|
869
841
|
"PresignedGetObject",
|
|
870
842
|
PRESIGNED_GET_OBJECT
|
|
871
843
|
);
|
|
872
|
-
var
|
|
873
|
-
var
|
|
874
|
-
const m =
|
|
844
|
+
var messages10 = { tr: notifications, en: notifications2, ru: notifications3, ar: notifications4, fa: notifications5 };
|
|
845
|
+
var ADD_ORDER_USER = (locale = "tr") => {
|
|
846
|
+
const m = messages10[locale];
|
|
875
847
|
return z52.z.object({
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
quantity: z52.z.number().positive({ message: m.public_forms_validations_mustNumberPositive }).int({ message: m.public_forms_validations_mustNumberInteger }).meta({ examples: 1 }),
|
|
881
|
-
category1: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Sigaralar"] }),
|
|
882
|
-
category2: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["product"] }),
|
|
883
|
-
itemType: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["PHYSICAL"] }),
|
|
884
|
-
tax: z52.z.number({ message: m.public_forms_validations_mustNumber }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).int({ message: m.public_forms_validations_mustNumberInteger }).meta({ examples: [20] })
|
|
848
|
+
id: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }).nullable().meta({ examples: ["66ae616a9d86f0da5d4d25f6"] }),
|
|
849
|
+
contactName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Bayram Sar\u0131"] }),
|
|
850
|
+
phoneNumber: z52.z.e164({ message: m.public_forms_validations_phoneNumber }).meta({ examples: ["+905549374713"] }),
|
|
851
|
+
email: z52.z.email({ message: m.public_forms_validations_email }).meta({ examples: ["arda164@hotmail.com"] })
|
|
885
852
|
});
|
|
886
853
|
};
|
|
887
|
-
var
|
|
888
|
-
const m =
|
|
854
|
+
var ADD_ORDER_PAYMENT = (locale = "tr") => {
|
|
855
|
+
const m = messages10[locale];
|
|
856
|
+
return z52.z.object({
|
|
857
|
+
method: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["checkout_form"] }),
|
|
858
|
+
status: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["pending"] }),
|
|
859
|
+
provider: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["iyzico"] })
|
|
860
|
+
});
|
|
861
|
+
};
|
|
862
|
+
var ADD_ORDER_BUYER = (locale = "tr") => {
|
|
863
|
+
const m = messages10[locale];
|
|
864
|
+
return z52.z.object({
|
|
865
|
+
contactName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Ay\u015Fe Sar\u0131"] }),
|
|
866
|
+
email: z52.z.email({ message: m.public_forms_validations_email }).meta({ examples: ["no-reply@ssyazilim.com"] }),
|
|
867
|
+
identityNumber: z52.z.string().length(11, { message: m.public_forms_validations_minLength(11) }).meta({ examples: ["19342410262"] }),
|
|
868
|
+
registrationAddress: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Sar\u0131abal\u0131 Mahallesi, M\xFCft\xFCler Mevki, Sokak:20 No:3 Serik"] }),
|
|
869
|
+
country: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["T\xFCrkiye"] }),
|
|
870
|
+
city: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Antalya"] }),
|
|
871
|
+
district: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Serik"] }),
|
|
872
|
+
zipCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["07500"] }),
|
|
873
|
+
message: z52.z.string().optional().meta({ examples: ["Hediye paketi olsun."] })
|
|
874
|
+
});
|
|
875
|
+
};
|
|
876
|
+
var ADD_ORDER_SHIPPING = (locale = "tr") => {
|
|
877
|
+
const m = messages10[locale];
|
|
889
878
|
return z52.z.object({
|
|
890
879
|
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Ay\u015Fe"] }),
|
|
891
880
|
surname: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Sar\u0131"] }),
|
|
@@ -896,11 +885,11 @@ var ADD_SHIPPING_ADDRESS = (locale = "tr") => {
|
|
|
896
885
|
zipCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["07500"] })
|
|
897
886
|
});
|
|
898
887
|
};
|
|
899
|
-
var
|
|
900
|
-
const m =
|
|
888
|
+
var ADD_ORDER_BILLING = (locale = "tr") => {
|
|
889
|
+
const m = messages10[locale];
|
|
901
890
|
return z52.z.object({
|
|
902
|
-
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["
|
|
903
|
-
surname: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["
|
|
891
|
+
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Varyant"] }),
|
|
892
|
+
surname: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Restauran A.S"] }),
|
|
904
893
|
country: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["T\xFCrkiye"] }),
|
|
905
894
|
city: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Antalya"] }),
|
|
906
895
|
district: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Konyaalt\u0131"] }),
|
|
@@ -908,17 +897,133 @@ var ADD_BILLING_ADDRESS = (locale = "tr") => {
|
|
|
908
897
|
zipCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["07500"] })
|
|
909
898
|
});
|
|
910
899
|
};
|
|
911
|
-
var
|
|
900
|
+
var ADD_ORDER_BASKET_ITEM = (locale = "tr") => {
|
|
901
|
+
const m = messages10[locale];
|
|
902
|
+
return z52.z.object({
|
|
903
|
+
productId: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }).meta({ examples: ["674094c121add706a8980816"] }),
|
|
904
|
+
variantId: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }).optional().meta({ examples: ["674094c121add706a8980817"] }),
|
|
905
|
+
quantity: z52.z.number().int().min(1).meta({ examples: [1] })
|
|
906
|
+
});
|
|
907
|
+
};
|
|
908
|
+
var ADD_ORDER_SHIPMENT = (locale = "tr") => {
|
|
909
|
+
const m = messages10[locale];
|
|
910
|
+
return z52.z.object({
|
|
911
|
+
method: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["standard"] }),
|
|
912
|
+
statusCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["awaiting"] }),
|
|
913
|
+
offerProviderCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["GELIVER"] }),
|
|
914
|
+
offerTotalAmount: z52.z.number({ message: m.public_forms_validations_mustNumber }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [0] }),
|
|
915
|
+
desi: z52.z.number({ message: m.public_forms_validations_mustNumber }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1] })
|
|
916
|
+
});
|
|
917
|
+
};
|
|
918
|
+
var SAVE_ORDER = (locale = "tr") => {
|
|
919
|
+
const m = messages10[locale];
|
|
920
|
+
return z52.z.object({
|
|
921
|
+
orderNumber: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["1234567890"] }),
|
|
922
|
+
language: z52.z.string().length(2, { message: m.public_forms_validations_minLength(2) }).meta({ examples: ["en"] }),
|
|
923
|
+
status: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["awaiting"] }),
|
|
924
|
+
fulfillmentStatus: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["unfulfilled"] }),
|
|
925
|
+
user: ADD_ORDER_USER(locale),
|
|
926
|
+
payment: ADD_ORDER_PAYMENT(locale),
|
|
927
|
+
buyer: ADD_ORDER_BUYER(locale),
|
|
928
|
+
shippingAddress: ADD_ORDER_SHIPPING(locale),
|
|
929
|
+
billingAddress: ADD_ORDER_BILLING(locale),
|
|
930
|
+
basketItems: z52.z.array(ADD_ORDER_BASKET_ITEM(locale)),
|
|
931
|
+
shipment: ADD_ORDER_SHIPMENT(locale)
|
|
932
|
+
});
|
|
933
|
+
};
|
|
934
|
+
var ADD_ORDER_INFORMATIONS = (locale = "tr") => {
|
|
935
|
+
const m = messages10[locale];
|
|
936
|
+
return z52.z.object({
|
|
937
|
+
contactName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
938
|
+
phoneNumber: z52.z.e164({ message: m.public_forms_validations_phoneNumber }),
|
|
939
|
+
email: z52.z.email({ message: m.public_forms_validations_email }),
|
|
940
|
+
country: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
941
|
+
city: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
942
|
+
district: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
943
|
+
zipCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
944
|
+
address: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
945
|
+
message: z52.z.string().optional()
|
|
946
|
+
});
|
|
947
|
+
};
|
|
948
|
+
var ADD_ORDER_CASH = (locale = "tr") => {
|
|
949
|
+
const m = messages10[locale];
|
|
950
|
+
return z52.z.object({
|
|
951
|
+
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
952
|
+
surname: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
953
|
+
phoneNumber: z52.z.e164({ message: m.public_forms_validations_phoneNumber }),
|
|
954
|
+
email: z52.z.email({ message: m.public_forms_validations_email })
|
|
955
|
+
});
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
// src/schemas/order/schema.ts
|
|
959
|
+
registry.register("orderUser", ADD_ORDER_USER());
|
|
960
|
+
registry.register("orderPayment", ADD_ORDER_PAYMENT());
|
|
961
|
+
registry.register("orderBuyer", ADD_ORDER_BUYER());
|
|
962
|
+
registry.register("orderBasketItem", ADD_ORDER_BASKET_ITEM());
|
|
963
|
+
registry.register("orderShipment", ADD_ORDER_SHIPMENT());
|
|
964
|
+
var SaveOrderSchema = registry.register("saveOrder", SAVE_ORDER());
|
|
965
|
+
|
|
966
|
+
// src/utils/validations.ts
|
|
967
|
+
var isValidCard = (card) => {
|
|
968
|
+
const digits = card.replace(/\s/g, "");
|
|
969
|
+
let sum = 0;
|
|
970
|
+
let shouldDouble = false;
|
|
971
|
+
for (let i = digits.length - 1; i >= 0; i--) {
|
|
972
|
+
let digit = parseInt(digits[i]);
|
|
973
|
+
if (shouldDouble) {
|
|
974
|
+
digit *= 2;
|
|
975
|
+
if (digit > 9) digit -= 9;
|
|
976
|
+
}
|
|
977
|
+
sum += digit;
|
|
978
|
+
shouldDouble = !shouldDouble;
|
|
979
|
+
}
|
|
980
|
+
return sum % 10 === 0;
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
// src/schemas/payment-iyzico/validation.ts
|
|
984
|
+
var messages11 = { tr: notifications, en: notifications2, ru: notifications3, ar: notifications4, fa: notifications5 };
|
|
985
|
+
var ADD_BASKET_ITEM_IYZICO = (locale = "tr") => {
|
|
986
|
+
const m = messages11[locale];
|
|
987
|
+
return z52.z.object({
|
|
988
|
+
id: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }).meta({ examples: ["674094c121add706a8980816"] }),
|
|
989
|
+
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Samsung Galaxy A16 4 Gb Ram 128 Gb Gri"] }),
|
|
990
|
+
price: z52.z.number({ message: m.public_forms_validations_mustNumber }).positive({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1500.65] }),
|
|
991
|
+
category1: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Cep telefonu & Aksesuar"] }),
|
|
992
|
+
category2: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["product"] }),
|
|
993
|
+
itemType: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["PHYSICAL"] })
|
|
994
|
+
});
|
|
995
|
+
};
|
|
996
|
+
var ADD_SHIPPING_ADDRESS_IYZICO = (locale = "tr") => {
|
|
997
|
+
const m = messages11[locale];
|
|
998
|
+
return z52.z.object({
|
|
999
|
+
contactName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Ay\u015Fe"] }),
|
|
1000
|
+
country: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["T\xFCrkiye"] }),
|
|
1001
|
+
city: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Antalya"] }),
|
|
1002
|
+
address: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Sar\u0131abal\u0131 Mahallesi, M\xFCft\xFCler Mevki, Sokak:20 No:3 Serik"] })
|
|
1003
|
+
});
|
|
1004
|
+
};
|
|
1005
|
+
var ADD_BILLING_ADDRESS_IYZICO = (locale = "tr") => {
|
|
912
1006
|
const m = messages11[locale];
|
|
913
1007
|
return z52.z.object({
|
|
1008
|
+
contactName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Varyant Restaurant"] }),
|
|
1009
|
+
country: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["T\xFCrkiye"] }),
|
|
1010
|
+
city: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Antalya"] }),
|
|
1011
|
+
address: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Bah\xE7elievler Mahallesi, Atat\xFCrk Park\u0131 25/21"] }),
|
|
1012
|
+
zipCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["07500"] })
|
|
1013
|
+
});
|
|
1014
|
+
};
|
|
1015
|
+
var ADD_BUYER_IYZICO = (locale = "tr") => {
|
|
1016
|
+
const m = messages11[locale];
|
|
1017
|
+
return z52.z.object({
|
|
1018
|
+
id: z52.z.string().length(24, { message: m.public_forms_validations_minLength(24) }).meta({ examples: ["674094c121add706a8980819"] }),
|
|
1019
|
+
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Ay\u015Fe"] }),
|
|
1020
|
+
surname: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Sar\u0131"] }),
|
|
1021
|
+
identityNumber: z52.z.string().length(11, { message: m.public_forms_validations_minLength(11) }).meta({ examples: ["19342410262"] }),
|
|
914
1022
|
email: z52.z.email({ message: m.public_forms_validations_email }).meta({ examples: ["no-reply@ssyazilim.com"] }),
|
|
915
|
-
identityNumber: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["19342410262"] }),
|
|
916
|
-
registrationAddress: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Sar\u0131abal\u0131 Mahallesi, M\xFCft\xFCler Mevki, Sokak:20 No:3 Serik"] }),
|
|
917
1023
|
country: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["T\xFCrkiye"] }),
|
|
918
1024
|
city: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Antalya"] }),
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
message: z52.z.string().optional().meta({ examples: ["Hediye paketi olsun!"] })
|
|
1025
|
+
registrationAddress: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Sar\u0131abal\u0131 Mahallesi, M\xFCft\xFCler Mevki, Sokak:20 No:3 Serik"] }),
|
|
1026
|
+
ip: z52.z.union([z52.z.ipv4(), z52.z.ipv6()]).meta({ examples: ["95.70.235.104"] })
|
|
922
1027
|
});
|
|
923
1028
|
};
|
|
924
1029
|
var ADD_PAYMENT_CARD = (locale = "tr") => {
|
|
@@ -934,67 +1039,53 @@ var ADD_PAYMENT_CARD = (locale = "tr") => {
|
|
|
934
1039
|
registerCard: z52.z.number({ message: m.public_forms_validations_mustNumber }).int({ message: m.public_forms_validations_mustNumberInteger }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [0] })
|
|
935
1040
|
});
|
|
936
1041
|
};
|
|
937
|
-
var
|
|
1042
|
+
var ADD_PAYMENT_CARD_IYZICO = (locale = "tr") => {
|
|
938
1043
|
const m = messages11[locale];
|
|
939
1044
|
return z52.z.object({
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
offerId: z52.z.string().optional().meta({ examples: ["8e8cd00c-6fc4-4ae1-af46-013d78309287"] }),
|
|
946
|
-
offerProviderCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["GELIVER"] }),
|
|
947
|
-
offerTotalAmount: z52.z.number({ message: m.public_forms_validations_mustNumber }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [0] }),
|
|
948
|
-
desi: z52.z.number({ message: m.public_forms_validations_mustNumber }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1] }),
|
|
949
|
-
barcode: z52.z.string().optional().meta({ examples: ["88242290375"] }),
|
|
950
|
-
trackingId: z52.z.string().optional().meta({ examples: ["1186e0d8-dd49-4fb9-b5ec-2d6af4146e32"] }),
|
|
951
|
-
trackingNumber: z52.z.string().optional().meta({ examples: ["21634385"] }),
|
|
952
|
-
trackingUrl: z52.z.string().optional().meta({ examples: ["https://app.geliver.io/tracking/1186e0d8-dd49-4fb9-b5ec-2d6af4146e32"] }),
|
|
953
|
-
trackingStatusCode: z52.z.string().optional().meta({ examples: ["PRE_TRANSIT"] }),
|
|
954
|
-
trackingStatusUpdate: z52.z.string().optional().meta({ examples: ["2026-01-30T12:09:13.3327+03:00"] }),
|
|
955
|
-
labelFileType: z52.z.string().optional().meta({ examples: ["PROVIDER_PDF"] }),
|
|
956
|
-
labelUrl: z52.z.string().optional().meta({
|
|
957
|
-
examples: ["https://labels3.geliver.io/labels/1186e0d8-dd49-4fb9-b5ec-2d6af4146e32.pdf"]
|
|
958
|
-
}),
|
|
959
|
-
labelResponsiveUrl: z52.z.string().optional().meta({
|
|
960
|
-
examples: [
|
|
961
|
-
"https://api.geliver.io/api/v1/responsivelabels/1186e0d8-dd49-4fb9-b5ec-2d6af4146e32/1f6b"
|
|
962
|
-
]
|
|
963
|
-
})
|
|
1045
|
+
cardAlias: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["ALISARI"] }),
|
|
1046
|
+
cardHolderName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["ALI SARI"] }),
|
|
1047
|
+
cardNumber: z52.z.string().refine(isValidCard, { message: m.public_forms_validations_cardNumber }).meta({ examples: ["5170410000000004"] }),
|
|
1048
|
+
expireMonth: z52.z.string().min(1, { message: m.public_forms_validations_minLength(2) }).max(2, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["10"] }),
|
|
1049
|
+
expireYear: z52.z.string().min(4, { message: m.public_forms_validations_minLength(2) }).max(4, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["2030"] })
|
|
964
1050
|
});
|
|
965
1051
|
};
|
|
966
|
-
var
|
|
1052
|
+
var ADD_CARD_IYZICO = (locale = "tr") => {
|
|
967
1053
|
const m = messages11[locale];
|
|
968
1054
|
return z52.z.object({
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
token: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["649eb03e-cfd2-4f24-86b0-95628a37a029"] }),
|
|
972
|
-
contactName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Halil Erbil G\xFCr"] }),
|
|
973
|
-
phoneNumber: z52.z.e164({ message: m.public_forms_validations_phoneNumber }).meta({ examples: ["905527406607"] }),
|
|
974
|
-
email: z52.z.email().meta({ examples: ["halilerbilgur@gmail.com"] })
|
|
1055
|
+
email: z52.z.email({ message: m.public_forms_validations_email }).meta({ examples: ["no-reply@ssyazilim.com"] }),
|
|
1056
|
+
card: ADD_PAYMENT_CARD_IYZICO(locale)
|
|
975
1057
|
});
|
|
976
1058
|
};
|
|
977
|
-
var
|
|
1059
|
+
var ADD_PAYMENT_CARD_IYZICO_NON_3D = (locale = "tr") => {
|
|
1060
|
+
const m = messages11[locale];
|
|
1061
|
+
return ADD_PAYMENT_CARD_IYZICO(locale).extend({
|
|
1062
|
+
cvc: z52.z.string().min(3, { message: m.public_forms_validations_minLength(3) }).max(4, { message: m.public_forms_validations_maxLength(4) }).meta({ examples: ["123"] })
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1065
|
+
var ADD_PAYMENT_IYZICO = (locale = "tr") => {
|
|
1066
|
+
const m = messages11[locale];
|
|
978
1067
|
return z52.z.object({
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1068
|
+
price: z52.z.number({ message: m.public_forms_validations_mustNumber }).positive({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1500.65] }),
|
|
1069
|
+
paidPrice: z52.z.number({ message: m.public_forms_validations_mustNumber }).positive({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1800.65] }),
|
|
1070
|
+
installments: z52.z.number({ message: m.public_forms_validations_mustNumber }).int({ message: m.public_forms_validations_mustNumberInteger }).positive({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1] }),
|
|
1071
|
+
paymentCard: ADD_PAYMENT_CARD_IYZICO(locale),
|
|
1072
|
+
buyer: ADD_BUYER_IYZICO(locale),
|
|
1073
|
+
shippingAddress: ADD_SHIPPING_ADDRESS_IYZICO(locale),
|
|
1074
|
+
billingAddress: ADD_BILLING_ADDRESS_IYZICO(locale),
|
|
1075
|
+
basketItems: z52.z.array(ADD_BASKET_ITEM_IYZICO(locale))
|
|
985
1076
|
});
|
|
986
1077
|
};
|
|
987
|
-
var
|
|
1078
|
+
var ADD_PAYMENT_IYZICO_NON_3D = (locale = "tr") => {
|
|
988
1079
|
const m = messages11[locale];
|
|
989
1080
|
return z52.z.object({
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1081
|
+
price: z52.z.number({ message: m.public_forms_validations_mustNumber }).positive({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1500.65] }),
|
|
1082
|
+
paidPrice: z52.z.number({ message: m.public_forms_validations_mustNumber }).positive({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1800.65] }),
|
|
1083
|
+
installments: z52.z.number({ message: m.public_forms_validations_mustNumber }).int({ message: m.public_forms_validations_mustNumberInteger }).positive({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [1] }),
|
|
1084
|
+
paymentCard: ADD_PAYMENT_CARD_IYZICO_NON_3D(locale),
|
|
1085
|
+
buyer: ADD_BUYER_IYZICO(locale),
|
|
1086
|
+
shippingAddress: ADD_SHIPPING_ADDRESS_IYZICO(locale),
|
|
1087
|
+
billingAddress: ADD_BILLING_ADDRESS_IYZICO(locale),
|
|
1088
|
+
basketItems: z52.z.array(ADD_BASKET_ITEM_IYZICO(locale))
|
|
998
1089
|
});
|
|
999
1090
|
};
|
|
1000
1091
|
var CHECK_HTML_FOR_IYZICO = (locale = "tr") => {
|
|
@@ -1004,10 +1095,10 @@ var CHECK_HTML_FOR_IYZICO = (locale = "tr") => {
|
|
|
1004
1095
|
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["Ali"] }),
|
|
1005
1096
|
surname: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["SARI"] })
|
|
1006
1097
|
}),
|
|
1007
|
-
buyer:
|
|
1008
|
-
shippingAddress:
|
|
1009
|
-
billingAddress:
|
|
1010
|
-
basketItems: z52.z.array(
|
|
1098
|
+
buyer: ADD_BUYER_IYZICO(locale),
|
|
1099
|
+
shippingAddress: ADD_SHIPPING_ADDRESS_IYZICO(locale),
|
|
1100
|
+
billingAddress: ADD_BILLING_ADDRESS_IYZICO(locale),
|
|
1101
|
+
basketItems: z52.z.array(ADD_BASKET_ITEM_IYZICO(locale))
|
|
1011
1102
|
});
|
|
1012
1103
|
};
|
|
1013
1104
|
var COMPLETE_PAYMENT_3D = (locale = "tr") => {
|
|
@@ -1030,33 +1121,13 @@ var CANCEL_PAYMENT = (locale = "tr") => {
|
|
|
1030
1121
|
paymentId: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) })
|
|
1031
1122
|
});
|
|
1032
1123
|
};
|
|
1033
|
-
var
|
|
1034
|
-
const m = messages11[locale];
|
|
1035
|
-
return z52.z.object({
|
|
1036
|
-
tax: z52.z.number({ message: m.public_forms_validations_mustNumber }).int({ message: m.public_forms_validations_mustNumberInteger }).nonnegative({ message: m.public_forms_validations_mustNumberPositive }).meta({ examples: [20] })
|
|
1037
|
-
});
|
|
1038
|
-
};
|
|
1039
|
-
var ADD_PAYMENT_INFORMATIONS = (locale = "tr") => {
|
|
1040
|
-
const m = messages11[locale];
|
|
1041
|
-
return z52.z.object({
|
|
1042
|
-
contactName: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1043
|
-
phoneNumber: z52.z.e164({ message: m.public_forms_validations_phoneNumber }),
|
|
1044
|
-
email: z52.z.email({ message: m.public_forms_validations_email }),
|
|
1045
|
-
country: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1046
|
-
city: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1047
|
-
district: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1048
|
-
zipCode: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1049
|
-
address: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1050
|
-
message: z52.z.string().optional()
|
|
1051
|
-
});
|
|
1052
|
-
};
|
|
1053
|
-
var ADD_PAYMENT_CASH = (locale = "tr") => {
|
|
1124
|
+
var REFUND_PAYMENT = (locale = "tr") => {
|
|
1054
1125
|
const m = messages11[locale];
|
|
1055
1126
|
return z52.z.object({
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1127
|
+
paymentId: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1128
|
+
conversationId: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1129
|
+
price: z52.z.string().min(1, { message: m.public_forms_validations_minLength(1) }).max(254, { message: m.public_forms_validations_maxLength(254) }).meta({ examples: ["2500"] }),
|
|
1130
|
+
currency: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) })
|
|
1060
1131
|
});
|
|
1061
1132
|
};
|
|
1062
1133
|
var ADD_IYZICO = (locale = "tr") => {
|
|
@@ -1064,26 +1135,20 @@ var ADD_IYZICO = (locale = "tr") => {
|
|
|
1064
1135
|
return z52.z.object({
|
|
1065
1136
|
name: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1066
1137
|
surname: z52.z.string().min(2, { message: m.public_forms_validations_minLength(2) }).max(254, { message: m.public_forms_validations_maxLength(254) }),
|
|
1067
|
-
identityNumber: z52.z.string().
|
|
1138
|
+
identityNumber: z52.z.string().length(11, { message: m.public_forms_validations_minLength(11) }),
|
|
1068
1139
|
phoneNumber: z52.z.e164({ message: m.public_forms_validations_phoneNumber }),
|
|
1069
1140
|
email: z52.z.email({ message: m.public_forms_validations_email }),
|
|
1070
1141
|
checkApprove: z52.z.literal(true, { message: m.public_forms_validations_required })
|
|
1071
1142
|
});
|
|
1072
1143
|
};
|
|
1073
1144
|
|
|
1074
|
-
// src/schemas/payment/schema.ts
|
|
1075
|
-
registry.register("basketItems", z52.z.array(ADD_BASKET_ITEM()));
|
|
1076
|
-
registry.register("billingAddress", ADD_BILLING_ADDRESS());
|
|
1077
|
-
registry.register("buyer", ADD_BUYER());
|
|
1145
|
+
// src/schemas/payment-iyzico/schema.ts
|
|
1078
1146
|
registry.register("paymentCard", ADD_PAYMENT_CARD());
|
|
1079
|
-
registry.register("
|
|
1080
|
-
registry.register("
|
|
1081
|
-
registry.register("paymentUser", ADD_PAYMENT_USER());
|
|
1082
|
-
var AddPaymentSchema = registry.register("addPayment", ADD_PAYMENT());
|
|
1083
|
-
var SavePaymentSchema = registry.register("savePayment", SAVE_PAYMENT());
|
|
1147
|
+
var AddCardSchema = registry.register("AddCard", ADD_CARD_IYZICO());
|
|
1148
|
+
var AddPaymentSchema = registry.register("addPayment", ADD_PAYMENT_IYZICO_NON_3D());
|
|
1084
1149
|
var CheckHTMLForIyzicoSchema = registry.register(
|
|
1085
1150
|
"checkHTMLForIyzico",
|
|
1086
|
-
|
|
1151
|
+
ADD_PAYMENT_IYZICO()
|
|
1087
1152
|
);
|
|
1088
1153
|
var CompletePayment3DSchema = registry.register(
|
|
1089
1154
|
"completePayment3D",
|
|
@@ -1091,7 +1156,6 @@ var CompletePayment3DSchema = registry.register(
|
|
|
1091
1156
|
);
|
|
1092
1157
|
var CheckInstallmentSchema = registry.register("checkInstallment", CHECK_INSTALLMENT());
|
|
1093
1158
|
var CancelPaymentSchema = registry.register("cancelPayment", CANCEL_PAYMENT());
|
|
1094
|
-
var UpdateTaxSchema = registry.register("updateTax", UPDATE_TAX());
|
|
1095
1159
|
var messages12 = { tr: notifications, en: notifications2, ru: notifications3, ar: notifications4, fa: notifications5 };
|
|
1096
1160
|
var ADD_POST = (locale = "tr") => {
|
|
1097
1161
|
const m = messages12[locale];
|
|
@@ -1444,7 +1508,7 @@ var ADD_CUSTOMER = (locale = "tr") => {
|
|
|
1444
1508
|
name: z52.z.string().min(2, m.public_forms_validations_minLength(2)).max(254, m.public_forms_validations_maxLength(254)).meta({ examples: ["Adem"] }),
|
|
1445
1509
|
surname: z52.z.string().min(2, m.public_forms_validations_minLength(2)).max(254, m.public_forms_validations_maxLength(254)).meta({ examples: ["\u015Eenocak"] }),
|
|
1446
1510
|
email: z52.z.email({ message: m.public_forms_validations_email }).meta({ examples: ["senocak-a@hotmail.com"] }),
|
|
1447
|
-
phoneNumber: z52.z.e164({ message: m.public_forms_validations_phoneNumber }).meta({ examples: ["905425496142"] }),
|
|
1511
|
+
phoneNumber: z52.z.e164({ message: m.public_forms_validations_phoneNumber }).meta({ examples: ["+905425496142"] }),
|
|
1448
1512
|
password: z52.z.string().min(8, m.public_forms_validations_minLength(8)).max(64, m.public_forms_validations_maxLength(64)).or(z52.z.literal("")).optional().meta({ examples: ["Passw0rd"] }),
|
|
1449
1513
|
role: z52.z.array(z52.z.enum(["ROLE_ADMIN", "ROLE_USER"])).meta({ examples: [["ROLE_USER"]] }),
|
|
1450
1514
|
isActivated: z52.z.boolean().meta({ examples: [true] })
|
|
@@ -1727,16 +1791,6 @@ registry.registerPath({
|
|
|
1727
1791
|
},
|
|
1728
1792
|
responses
|
|
1729
1793
|
});
|
|
1730
|
-
registry.registerPath({
|
|
1731
|
-
method: "get",
|
|
1732
|
-
path: "/public/check-card/{userKey}",
|
|
1733
|
-
tags: ["Card"],
|
|
1734
|
-
summary: "Get a special card for the user",
|
|
1735
|
-
operationId: "getCardWithDetail",
|
|
1736
|
-
security: [{ JWT: [] }],
|
|
1737
|
-
request: { params: z52.z.object({ userKey: z52.z.string() }) },
|
|
1738
|
-
responses
|
|
1739
|
-
});
|
|
1740
1794
|
registry.registerPath({
|
|
1741
1795
|
method: "get",
|
|
1742
1796
|
path: "/public/card",
|
|
@@ -1747,16 +1801,6 @@ registry.registerPath({
|
|
|
1747
1801
|
request: { params: z52.z.object({ userKey: z52.z.string() }) },
|
|
1748
1802
|
responses
|
|
1749
1803
|
});
|
|
1750
|
-
registry.registerPath({
|
|
1751
|
-
method: "post",
|
|
1752
|
-
path: "/public/card",
|
|
1753
|
-
tags: ["Card"],
|
|
1754
|
-
summary: "Add a new card to the system",
|
|
1755
|
-
operationId: "addCard",
|
|
1756
|
-
security: [{ JWT: [] }],
|
|
1757
|
-
request: { body: buildRequestBody(AddCardSchema) },
|
|
1758
|
-
responses
|
|
1759
|
-
});
|
|
1760
1804
|
registry.registerPath({
|
|
1761
1805
|
method: "get",
|
|
1762
1806
|
path: "/admin/cards",
|
|
@@ -1766,16 +1810,6 @@ registry.registerPath({
|
|
|
1766
1810
|
security: [{ JWT: [] }],
|
|
1767
1811
|
responses
|
|
1768
1812
|
});
|
|
1769
|
-
registry.registerPath({
|
|
1770
|
-
method: "delete",
|
|
1771
|
-
path: "/public/card/{cardId}",
|
|
1772
|
-
tags: ["Card"],
|
|
1773
|
-
summary: "Delete a card from the system",
|
|
1774
|
-
operationId: "deleteCard",
|
|
1775
|
-
security: [{ JWT: [] }],
|
|
1776
|
-
request: { params: z52.z.object({ cardId: z52.z.string() }) },
|
|
1777
|
-
responses
|
|
1778
|
-
});
|
|
1779
1813
|
registry.registerPath({
|
|
1780
1814
|
method: "get",
|
|
1781
1815
|
path: "/public/cart",
|
|
@@ -2430,35 +2464,71 @@ registry.registerPath({
|
|
|
2430
2464
|
request: { body: buildRequestBody(PresignedGetObjectSchema) },
|
|
2431
2465
|
responses
|
|
2432
2466
|
});
|
|
2467
|
+
var OrderListQuerySchema = ListQuerySchema.extend({
|
|
2468
|
+
...DateRangeQuerySchema.shape,
|
|
2469
|
+
status: z52.z.string().optional().meta({ examples: ["pending"] })
|
|
2470
|
+
});
|
|
2433
2471
|
registry.registerPath({
|
|
2434
2472
|
method: "get",
|
|
2435
|
-
path: "/public/
|
|
2436
|
-
tags: ["
|
|
2437
|
-
summary: "Get User
|
|
2438
|
-
operationId: "
|
|
2473
|
+
path: "/public-key/order",
|
|
2474
|
+
tags: ["Order"],
|
|
2475
|
+
summary: "Get User order in system",
|
|
2476
|
+
operationId: "getOrder",
|
|
2477
|
+
security: [{ "X-API-KEY": [] }],
|
|
2439
2478
|
request: {
|
|
2440
2479
|
query: z52.z.object({
|
|
2441
2480
|
orderId: z52.z.string().optional(),
|
|
2442
|
-
|
|
2481
|
+
paymentId: z52.z.string().optional()
|
|
2443
2482
|
})
|
|
2444
2483
|
},
|
|
2445
2484
|
responses
|
|
2446
2485
|
});
|
|
2447
2486
|
registry.registerPath({
|
|
2448
2487
|
method: "post",
|
|
2449
|
-
path: "/public/
|
|
2450
|
-
tags: ["
|
|
2451
|
-
summary: "Save
|
|
2452
|
-
operationId: "
|
|
2453
|
-
|
|
2488
|
+
path: "/public-key/order",
|
|
2489
|
+
tags: ["Order"],
|
|
2490
|
+
summary: "Save order to the system",
|
|
2491
|
+
operationId: "saveOrder",
|
|
2492
|
+
security: [{ "X-API-KEY": [] }],
|
|
2493
|
+
request: { body: buildRequestBody(SaveOrderSchema) },
|
|
2494
|
+
responses
|
|
2495
|
+
});
|
|
2496
|
+
registry.registerPath({
|
|
2497
|
+
method: "get",
|
|
2498
|
+
path: "/public/orders",
|
|
2499
|
+
tags: ["Order"],
|
|
2500
|
+
summary: "Get User Orders in the system",
|
|
2501
|
+
operationId: "getOrdersForTheUser",
|
|
2502
|
+
security: [{ JWT: [] }],
|
|
2454
2503
|
responses
|
|
2455
2504
|
});
|
|
2456
2505
|
registry.registerPath({
|
|
2457
2506
|
method: "get",
|
|
2458
|
-
path: "/
|
|
2459
|
-
tags: ["
|
|
2507
|
+
path: "/admin/orders",
|
|
2508
|
+
tags: ["Order"],
|
|
2509
|
+
summary: "Get all orders in the system",
|
|
2510
|
+
operationId: "getOrdersAdmin",
|
|
2511
|
+
security: [{ JWT: [] }],
|
|
2512
|
+
request: { query: OrderListQuerySchema },
|
|
2513
|
+
responses
|
|
2514
|
+
});
|
|
2515
|
+
registry.registerPath({
|
|
2516
|
+
method: "delete",
|
|
2517
|
+
path: "/admin/orders",
|
|
2518
|
+
tags: ["Order"],
|
|
2519
|
+
summary: "Delete a order or orders in the system",
|
|
2520
|
+
operationId: "deleteOrders",
|
|
2521
|
+
security: [{ JWT: [] }],
|
|
2522
|
+
request: { body: buildRequestBody(DeleteModelSchema) },
|
|
2523
|
+
responses
|
|
2524
|
+
});
|
|
2525
|
+
registry.registerPath({
|
|
2526
|
+
method: "get",
|
|
2527
|
+
path: "/public-key/payment-iyzico/check/{paymentId}",
|
|
2528
|
+
tags: ["Payment Iyzico"],
|
|
2460
2529
|
summary: "Check payment for the IYZICO Service",
|
|
2461
|
-
operationId: "
|
|
2530
|
+
operationId: "checkIyzicoPayment",
|
|
2531
|
+
security: [{ "X-API-KEY": [] }],
|
|
2462
2532
|
request: {
|
|
2463
2533
|
params: z52.z.object({ paymentId: z52.z.string() })
|
|
2464
2534
|
},
|
|
@@ -2466,10 +2536,11 @@ registry.registerPath({
|
|
|
2466
2536
|
});
|
|
2467
2537
|
registry.registerPath({
|
|
2468
2538
|
method: "post",
|
|
2469
|
-
path: "/public/payment/IYZICO/{locale}",
|
|
2470
|
-
tags: ["Payment"],
|
|
2471
|
-
summary: "
|
|
2472
|
-
operationId: "
|
|
2539
|
+
path: "/public-key/payment-iyzico/IYZICO/{locale}",
|
|
2540
|
+
tags: ["Payment Iyzico"],
|
|
2541
|
+
summary: "The payment form initiates a session and returns checkoutFormContent, paymentPageUrl, and the transaction token to display the payment page",
|
|
2542
|
+
operationId: "checkIyzicoHtml",
|
|
2543
|
+
security: [{ "X-API-KEY": [] }],
|
|
2473
2544
|
request: {
|
|
2474
2545
|
params: z52.z.object({ locale: z52.z.enum(["en", "tr"]).meta({ examples: ["tr"] }) }),
|
|
2475
2546
|
body: buildRequestBody(CheckHTMLForIyzicoSchema)
|
|
@@ -2478,10 +2549,11 @@ registry.registerPath({
|
|
|
2478
2549
|
});
|
|
2479
2550
|
registry.registerPath({
|
|
2480
2551
|
method: "post",
|
|
2481
|
-
path: "/public/payment/IYZICO/{token}/{locale}",
|
|
2482
|
-
tags: ["Payment"],
|
|
2483
|
-
summary: "
|
|
2484
|
-
operationId: "
|
|
2552
|
+
path: "/public-key/payment-iyzico/IYZICO/{token}/{locale}",
|
|
2553
|
+
tags: ["Payment Iyzico"],
|
|
2554
|
+
summary: "After the CF payment form is completed, it queries the results using the token",
|
|
2555
|
+
operationId: "retrieveIyzicoForm",
|
|
2556
|
+
security: [{ "X-API-KEY": [] }],
|
|
2485
2557
|
request: {
|
|
2486
2558
|
params: z52.z.object({
|
|
2487
2559
|
token: z52.z.string(),
|
|
@@ -2490,21 +2562,12 @@ registry.registerPath({
|
|
|
2490
2562
|
},
|
|
2491
2563
|
responses
|
|
2492
2564
|
});
|
|
2493
|
-
registry.registerPath({
|
|
2494
|
-
method: "get",
|
|
2495
|
-
path: "/public/payments",
|
|
2496
|
-
tags: ["Payment"],
|
|
2497
|
-
summary: "Get User Payments in the system",
|
|
2498
|
-
operationId: "getPaymentsForTheUser",
|
|
2499
|
-
security: [{ JWT: [] }],
|
|
2500
|
-
responses
|
|
2501
|
-
});
|
|
2502
2565
|
registry.registerPath({
|
|
2503
2566
|
method: "post",
|
|
2504
|
-
path: "/public/payment/{locale}",
|
|
2505
|
-
tags: ["Payment"],
|
|
2506
|
-
summary: "
|
|
2507
|
-
operationId: "
|
|
2567
|
+
path: "/public/payment-iyzico/NON-3D/{locale}",
|
|
2568
|
+
tags: ["Payment Iyzico"],
|
|
2569
|
+
summary: "The Payment Creation API is responsible for processing the customer\u2019s card payments. When this service is used, iyzico provides an immediate response regarding the success of the transaction",
|
|
2570
|
+
operationId: "createIyzicoPayment",
|
|
2508
2571
|
security: [{ JWT: [] }],
|
|
2509
2572
|
request: {
|
|
2510
2573
|
params: z52.z.object({ locale: z52.z.enum(["en", "tr"]).meta({ examples: ["tr"] }) }),
|
|
@@ -2514,10 +2577,10 @@ registry.registerPath({
|
|
|
2514
2577
|
});
|
|
2515
2578
|
registry.registerPath({
|
|
2516
2579
|
method: "post",
|
|
2517
|
-
path: "/public/payment/3D/{locale}",
|
|
2518
|
-
tags: ["Payment"],
|
|
2519
|
-
summary: "
|
|
2520
|
-
operationId: "
|
|
2580
|
+
path: "/public/payment-iyzico/3D/{locale}",
|
|
2581
|
+
tags: ["Payment Iyzico"],
|
|
2582
|
+
summary: "It initiates a 3D Secure session and returns the `htmlContent` value for 3DS authentication",
|
|
2583
|
+
operationId: "createIyzico3DPayment",
|
|
2521
2584
|
security: [{ JWT: [] }],
|
|
2522
2585
|
request: {
|
|
2523
2586
|
params: z52.z.object({ locale: z52.z.enum(["en", "tr"]).meta({ examples: ["tr"] }) }),
|
|
@@ -2527,15 +2590,15 @@ registry.registerPath({
|
|
|
2527
2590
|
});
|
|
2528
2591
|
registry.registerPath({
|
|
2529
2592
|
method: "post",
|
|
2530
|
-
path: "/public/payment/3D/{paymentId}/{
|
|
2531
|
-
tags: ["Payment"],
|
|
2532
|
-
summary: "
|
|
2533
|
-
operationId: "
|
|
2593
|
+
path: "/public/payment-iyzico/3D/{paymentId}/{token}",
|
|
2594
|
+
tags: ["Payment Iyzico"],
|
|
2595
|
+
summary: "After 3DS verification, a request must be sent to this endpoint to complete the payment transaction. This service is triggered using the information received after the verification step and concludes the transaction as either successful or unsuccessful",
|
|
2596
|
+
operationId: "completeIyzico3DPayment",
|
|
2534
2597
|
security: [{ JWT: [] }],
|
|
2535
2598
|
request: {
|
|
2536
2599
|
params: z52.z.object({
|
|
2537
2600
|
paymentId: z52.z.string(),
|
|
2538
|
-
|
|
2601
|
+
token: z52.z.string()
|
|
2539
2602
|
}),
|
|
2540
2603
|
body: buildRequestBody(CompletePayment3DSchema)
|
|
2541
2604
|
},
|
|
@@ -2543,30 +2606,22 @@ registry.registerPath({
|
|
|
2543
2606
|
});
|
|
2544
2607
|
registry.registerPath({
|
|
2545
2608
|
method: "post",
|
|
2546
|
-
path: "/public/payment/check/
|
|
2547
|
-
tags: ["Payment"],
|
|
2548
|
-
summary: "Check
|
|
2549
|
-
operationId: "
|
|
2609
|
+
path: "/public/payment-iyzico/check/installment",
|
|
2610
|
+
tags: ["Payment Iyzico"],
|
|
2611
|
+
summary: "Check installments with the IYZICO Service",
|
|
2612
|
+
operationId: "checkIyzicoInstallment",
|
|
2550
2613
|
security: [{ JWT: [] }],
|
|
2551
|
-
request: {
|
|
2552
|
-
|
|
2553
|
-
}
|
|
2554
|
-
registry.registerPath({
|
|
2555
|
-
method: "post",
|
|
2556
|
-
path: "/public/payment/check/installment",
|
|
2557
|
-
tags: ["Payment"],
|
|
2558
|
-
summary: "Check installment for the IYZICO Service",
|
|
2559
|
-
operationId: "installmentForUser",
|
|
2560
|
-
security: [{ JWT: [] }],
|
|
2561
|
-
request: { body: buildRequestBody(CheckInstallmentSchema) },
|
|
2614
|
+
request: {
|
|
2615
|
+
body: buildRequestBody(CheckInstallmentSchema)
|
|
2616
|
+
},
|
|
2562
2617
|
responses
|
|
2563
2618
|
});
|
|
2564
2619
|
registry.registerPath({
|
|
2565
2620
|
method: "post",
|
|
2566
|
-
path: "/public/payment/cancel/{locale}",
|
|
2567
|
-
tags: ["Payment"],
|
|
2568
|
-
summary: "
|
|
2569
|
-
operationId: "
|
|
2621
|
+
path: "/public/payment-iyzico/cancel/{locale}",
|
|
2622
|
+
tags: ["Payment Iyzico"],
|
|
2623
|
+
summary: "Used to cancel a payment transaction",
|
|
2624
|
+
operationId: "cancelIyzicoPayment",
|
|
2570
2625
|
security: [{ JWT: [] }],
|
|
2571
2626
|
request: {
|
|
2572
2627
|
params: z52.z.object({ locale: z52.z.enum(["en", "tr"]).meta({ examples: ["tr"] }) }),
|
|
@@ -2576,32 +2631,44 @@ registry.registerPath({
|
|
|
2576
2631
|
});
|
|
2577
2632
|
registry.registerPath({
|
|
2578
2633
|
method: "get",
|
|
2579
|
-
path: "/
|
|
2580
|
-
tags: ["Payment"],
|
|
2581
|
-
summary: "Get
|
|
2582
|
-
operationId: "
|
|
2634
|
+
path: "/public/payment-iyzico/check-card/{userKey}",
|
|
2635
|
+
tags: ["Payment Iyzico"],
|
|
2636
|
+
summary: "Get a special card for the user",
|
|
2637
|
+
operationId: "getCardWithDetail",
|
|
2583
2638
|
security: [{ JWT: [] }],
|
|
2584
|
-
request: {
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
},
|
|
2639
|
+
request: { params: z52.z.object({ userKey: z52.z.string() }) },
|
|
2640
|
+
responses
|
|
2641
|
+
});
|
|
2642
|
+
registry.registerPath({
|
|
2643
|
+
method: "post",
|
|
2644
|
+
path: "/public/payment-iyzico/add-card",
|
|
2645
|
+
tags: ["Payment Iyzico"],
|
|
2646
|
+
summary: "Add a new card to the system",
|
|
2647
|
+
operationId: "addCard",
|
|
2648
|
+
security: [{ JWT: [] }],
|
|
2649
|
+
request: { body: buildRequestBody(AddCardSchema) },
|
|
2595
2650
|
responses
|
|
2596
2651
|
});
|
|
2597
2652
|
registry.registerPath({
|
|
2598
2653
|
method: "delete",
|
|
2599
|
-
path: "/
|
|
2600
|
-
tags: ["Payment"],
|
|
2601
|
-
summary: "Delete a
|
|
2602
|
-
operationId: "
|
|
2654
|
+
path: "/public/payment-iyzico/delete-card/{cardId}",
|
|
2655
|
+
tags: ["Payment Iyzico"],
|
|
2656
|
+
summary: "Delete a card from the system",
|
|
2657
|
+
operationId: "deleteCard",
|
|
2603
2658
|
security: [{ JWT: [] }],
|
|
2604
|
-
request: {
|
|
2659
|
+
request: { params: z52.z.object({ cardId: z52.z.string() }) },
|
|
2660
|
+
responses
|
|
2661
|
+
});
|
|
2662
|
+
registry.registerPath({
|
|
2663
|
+
method: "post",
|
|
2664
|
+
path: "/public/payment-iyzico/validate-card",
|
|
2665
|
+
tags: ["Payment Iyzico"],
|
|
2666
|
+
summary: "Check a card with the IYZICO Service",
|
|
2667
|
+
operationId: "checkIyzicoCard",
|
|
2668
|
+
security: [{ JWT: [] }],
|
|
2669
|
+
request: {
|
|
2670
|
+
body: buildRequestBody(AddCardSchema)
|
|
2671
|
+
},
|
|
2605
2672
|
responses
|
|
2606
2673
|
});
|
|
2607
2674
|
registry.registerPath({
|
|
@@ -3122,25 +3189,6 @@ registry.registerPath({
|
|
|
3122
3189
|
operationId: "getShippingTemplates",
|
|
3123
3190
|
responses
|
|
3124
3191
|
});
|
|
3125
|
-
registry.registerPath({
|
|
3126
|
-
method: "post",
|
|
3127
|
-
path: "/public/shipping/address",
|
|
3128
|
-
tags: ["Shipping"],
|
|
3129
|
-
summary: "Create a shipping address",
|
|
3130
|
-
operationId: "addShippingAddress",
|
|
3131
|
-
security: [{ "X-API-KEY": [] }],
|
|
3132
|
-
request: { body: buildRequestBody(AddShippingAddressSchema) },
|
|
3133
|
-
responses
|
|
3134
|
-
});
|
|
3135
|
-
registry.registerPath({
|
|
3136
|
-
method: "post",
|
|
3137
|
-
path: "/public/shipping/shipment",
|
|
3138
|
-
tags: ["Shipping"],
|
|
3139
|
-
summary: "Create a shipment",
|
|
3140
|
-
operationId: "addShippingShipment",
|
|
3141
|
-
request: { body: buildRequestBody(AddShippingShipmentSchema) },
|
|
3142
|
-
responses
|
|
3143
|
-
});
|
|
3144
3192
|
registry.registerPath({
|
|
3145
3193
|
method: "get",
|
|
3146
3194
|
path: "/public/shipping/shipment/labelPDF/{shipmentId}",
|
|
@@ -3174,22 +3222,22 @@ registry.registerPath({
|
|
|
3174
3222
|
}
|
|
3175
3223
|
});
|
|
3176
3224
|
registry.registerPath({
|
|
3177
|
-
method: "
|
|
3178
|
-
path: "/
|
|
3225
|
+
method: "post",
|
|
3226
|
+
path: "/public-key/shipping/address",
|
|
3179
3227
|
tags: ["Shipping"],
|
|
3180
|
-
summary: "
|
|
3181
|
-
operationId: "
|
|
3182
|
-
security: [{
|
|
3183
|
-
request: {
|
|
3228
|
+
summary: "Create a shipping address",
|
|
3229
|
+
operationId: "addShippingAddress",
|
|
3230
|
+
security: [{ "X-API-KEY": [] }],
|
|
3231
|
+
request: { body: buildRequestBody(AddShippingAddressSchema) },
|
|
3184
3232
|
responses
|
|
3185
3233
|
});
|
|
3186
3234
|
registry.registerPath({
|
|
3187
3235
|
method: "get",
|
|
3188
|
-
path: "/public/shipping/addresses",
|
|
3236
|
+
path: "/public-key/shipping/addresses",
|
|
3189
3237
|
tags: ["Shipping"],
|
|
3190
3238
|
summary: "List shipping addresses",
|
|
3191
3239
|
operationId: "getShippingAddresses",
|
|
3192
|
-
security: [{
|
|
3240
|
+
security: [{ "X-API-KEY": [] }],
|
|
3193
3241
|
request: {
|
|
3194
3242
|
query: z52.z.object({
|
|
3195
3243
|
page: z52.z.number().int().optional().meta({ examples: [1] }),
|
|
@@ -3199,6 +3247,36 @@ registry.registerPath({
|
|
|
3199
3247
|
},
|
|
3200
3248
|
responses
|
|
3201
3249
|
});
|
|
3250
|
+
registry.registerPath({
|
|
3251
|
+
method: "post",
|
|
3252
|
+
path: "/public-key/shipping/shipment",
|
|
3253
|
+
tags: ["Shipping"],
|
|
3254
|
+
summary: "Create a shipment",
|
|
3255
|
+
operationId: "addShippingShipment",
|
|
3256
|
+
security: [{ "X-API-KEY": [] }],
|
|
3257
|
+
request: { body: buildRequestBody(AddShippingShipmentSchema) },
|
|
3258
|
+
responses
|
|
3259
|
+
});
|
|
3260
|
+
registry.registerPath({
|
|
3261
|
+
method: "post",
|
|
3262
|
+
path: "/admin/shipping/shipment/accept/{offerId}",
|
|
3263
|
+
tags: ["Shipping"],
|
|
3264
|
+
summary: "Accept an offer (purchase label)",
|
|
3265
|
+
operationId: "acceptShippingOffer",
|
|
3266
|
+
security: [{ "X-API-KEY": [] }],
|
|
3267
|
+
request: { params: z52.z.object({ offerId: z52.z.string() }) },
|
|
3268
|
+
responses
|
|
3269
|
+
});
|
|
3270
|
+
registry.registerPath({
|
|
3271
|
+
method: "get",
|
|
3272
|
+
path: "/admin/shipping/balance/{organizationId}",
|
|
3273
|
+
tags: ["Shipping"],
|
|
3274
|
+
summary: "Get organisation balance information",
|
|
3275
|
+
operationId: "getShippingBalance",
|
|
3276
|
+
security: [{ JWT: [] }],
|
|
3277
|
+
request: { params: z52.z.object({ organizationId: z52.z.string() }) },
|
|
3278
|
+
responses
|
|
3279
|
+
});
|
|
3202
3280
|
registry.registerPath({
|
|
3203
3281
|
method: "get",
|
|
3204
3282
|
path: "/admin/shipping/address/{addressId}",
|
|
@@ -3291,16 +3369,6 @@ registry.registerPath({
|
|
|
3291
3369
|
},
|
|
3292
3370
|
responses
|
|
3293
3371
|
});
|
|
3294
|
-
registry.registerPath({
|
|
3295
|
-
method: "post",
|
|
3296
|
-
path: "/admin/shipping/shipment/accept/{offerId}",
|
|
3297
|
-
tags: ["Shipping"],
|
|
3298
|
-
summary: "Accept an offer (purchase label)",
|
|
3299
|
-
operationId: "acceptShippingOffer",
|
|
3300
|
-
security: [{ JWT: [] }],
|
|
3301
|
-
request: { params: z52.z.object({ offerId: z52.z.string() }) },
|
|
3302
|
-
responses
|
|
3303
|
-
});
|
|
3304
3372
|
registry.registerPath({
|
|
3305
3373
|
method: "post",
|
|
3306
3374
|
path: "/admin/shipping/shipment/accept-return/{shipmentId}",
|
|
@@ -4167,29 +4235,6 @@ var GsmSchema = z52.z.object({
|
|
|
4167
4235
|
})
|
|
4168
4236
|
)
|
|
4169
4237
|
});
|
|
4170
|
-
var AddPaymentInformationsSchema = ADD_PAYMENT_INFORMATIONS();
|
|
4171
|
-
var PaymentStatusSchema = z52.z.string();
|
|
4172
|
-
var ProductBasketSchema = z52.z.object({
|
|
4173
|
-
_id: z52.z.string(),
|
|
4174
|
-
productId: z52.z.string(),
|
|
4175
|
-
images: ImageSchema,
|
|
4176
|
-
sku: z52.z.string(),
|
|
4177
|
-
description: z52.z.string().optional()
|
|
4178
|
-
});
|
|
4179
|
-
var PaymentBasketItemsSchema = ADD_BASKET_ITEM().extend(MongoSchema.shape);
|
|
4180
|
-
var PaymentSchema = SAVE_PAYMENT().extend({
|
|
4181
|
-
paymentUser: ADD_PAYMENT_USER().extend({
|
|
4182
|
-
ipAddress: z52.z.string().optional(),
|
|
4183
|
-
userAgent: z52.z.string().optional()
|
|
4184
|
-
})
|
|
4185
|
-
}).extend(MongoSchema.shape);
|
|
4186
|
-
var DEFAULT_PAYMENT_BUYER = getDefaultsForSchema(ADD_BUYER());
|
|
4187
|
-
var DEFAULT_PAYMENT_ADDRESS = getDefaultsForSchema(ADD_SHIPPING_ADDRESS());
|
|
4188
|
-
var DEFAULT_SHIPMENT = getDefaultsForSchema(ADD_SHIPMENT());
|
|
4189
|
-
var DEFAULT_PAYMENT_USER = getDefaultsForSchema(ADD_PAYMENT_USER());
|
|
4190
|
-
var DEFAULT_PAYMENT = getDefaultsForSchema(PaymentSchema);
|
|
4191
|
-
|
|
4192
|
-
// src/types/iyzico.ts
|
|
4193
4238
|
var PaymentCardSchema = z52.z.object({
|
|
4194
4239
|
cardHolderName: z52.z.string(),
|
|
4195
4240
|
cardNumber: z52.z.string(),
|
|
@@ -4198,270 +4243,14 @@ var PaymentCardSchema = z52.z.object({
|
|
|
4198
4243
|
cvc: z52.z.string(),
|
|
4199
4244
|
registerCard: z52.z.union([z52.z.literal(0), z52.z.literal(1)]).optional()
|
|
4200
4245
|
});
|
|
4201
|
-
var
|
|
4202
|
-
id: z52.z.string(),
|
|
4203
|
-
name: z52.z.string(),
|
|
4204
|
-
surname: z52.z.string(),
|
|
4205
|
-
identityNumber: z52.z.string(),
|
|
4206
|
-
city: z52.z.string(),
|
|
4207
|
-
country: z52.z.string(),
|
|
4208
|
-
email: z52.z.string(),
|
|
4209
|
-
message: z52.z.string().optional(),
|
|
4210
|
-
gsmNumber: z52.z.string().optional(),
|
|
4211
|
-
ip: z52.z.string(),
|
|
4212
|
-
registrationAddress: z52.z.string(),
|
|
4213
|
-
zipCode: z52.z.string().optional(),
|
|
4214
|
-
registrationDate: z52.z.string().optional(),
|
|
4215
|
-
lastLoginDate: z52.z.string().optional()
|
|
4216
|
-
});
|
|
4217
|
-
var PaymentAddressSchema = z52.z.object({
|
|
4218
|
-
contactName: z52.z.string(),
|
|
4219
|
-
city: z52.z.string(),
|
|
4220
|
-
country: z52.z.string(),
|
|
4221
|
-
address: z52.z.string(),
|
|
4222
|
-
zipCode: z52.z.string().optional()
|
|
4223
|
-
});
|
|
4224
|
-
var InstallmentSchema = z52.z.object({
|
|
4225
|
-
status: z52.z.enum(["success", "failure"]),
|
|
4226
|
-
locale: z52.z.enum(["tr", "en"]),
|
|
4227
|
-
systemTime: z52.z.number(),
|
|
4228
|
-
conversationId: z52.z.string(),
|
|
4229
|
-
installmentDetails: z52.z.object({
|
|
4230
|
-
binNumber: z52.z.string(),
|
|
4231
|
-
price: z52.z.string(),
|
|
4232
|
-
cardType: z52.z.enum(["CREDIT_CARD", "DEBIT_CARD", "PREPAID_CARD"]),
|
|
4233
|
-
cardAssociation: z52.z.enum(["MASTER_CARD", "VISA", "TROY", "AMERICAN_EXPRESS"]),
|
|
4234
|
-
cardFamilyName: z52.z.enum([
|
|
4235
|
-
"Bonus",
|
|
4236
|
-
"Axess",
|
|
4237
|
-
"World",
|
|
4238
|
-
"Maximum",
|
|
4239
|
-
"Paraf",
|
|
4240
|
-
"cardFinans",
|
|
4241
|
-
"Advantage"
|
|
4242
|
-
]),
|
|
4243
|
-
force3ds: z52.z.enum(["1", "0"]),
|
|
4244
|
-
bankName: z52.z.string(),
|
|
4245
|
-
bankCode: z52.z.number()
|
|
4246
|
-
}),
|
|
4247
|
-
installmentPrices: z52.z.object({
|
|
4248
|
-
installmentDetails: z52.z.object({
|
|
4249
|
-
installmentPrice: z52.z.string(),
|
|
4250
|
-
totalPrice: z52.z.number(),
|
|
4251
|
-
installmentNumber: z52.z.number()
|
|
4252
|
-
})
|
|
4253
|
-
}),
|
|
4254
|
-
errorCode: z52.z.string().optional(),
|
|
4255
|
-
errorMessage: z52.z.string().optional(),
|
|
4256
|
-
errorGroup: z52.z.string().optional()
|
|
4257
|
-
});
|
|
4258
|
-
var InstallmentNumberSchema = z52.z.union([
|
|
4259
|
-
z52.z.literal(1),
|
|
4260
|
-
z52.z.literal(2),
|
|
4261
|
-
z52.z.literal(3),
|
|
4262
|
-
z52.z.literal(6),
|
|
4263
|
-
z52.z.literal(9)
|
|
4264
|
-
]);
|
|
4265
|
-
var PaymentChannelSchema = z52.z.enum([
|
|
4266
|
-
"WEB",
|
|
4267
|
-
"MOBILE",
|
|
4268
|
-
"MOBILE_WEB",
|
|
4269
|
-
"MOBILE_IOS",
|
|
4270
|
-
"MOBILE_ANDROID",
|
|
4271
|
-
"MOBILE_WINDOWS",
|
|
4272
|
-
"MOBILE_TABLET",
|
|
4273
|
-
"MOBILE_PHONE"
|
|
4274
|
-
]);
|
|
4275
|
-
var PaymentGroupSchema = z52.z.enum(["PRODUCT", "LISTING", "SUBSCRIPTION"]);
|
|
4276
|
-
var PaymentIyzicoSchema = z52.z.object({
|
|
4277
|
-
locale: z52.z.enum(["tr", "en"]).optional(),
|
|
4278
|
-
conversationId: z52.z.string().optional(),
|
|
4279
|
-
price: z52.z.number(),
|
|
4280
|
-
paidPrice: z52.z.number(),
|
|
4281
|
-
currency: z52.z.string(),
|
|
4282
|
-
installment: InstallmentNumberSchema,
|
|
4283
|
-
basketId: z52.z.string().optional(),
|
|
4284
|
-
paymentChannel: PaymentChannelSchema.optional(),
|
|
4285
|
-
paymentGroup: PaymentGroupSchema.optional(),
|
|
4286
|
-
paymentCard: z52.z.union([
|
|
4287
|
-
PaymentCardSchema,
|
|
4288
|
-
z52.z.object({ cardUserKey: z52.z.string(), cardToken: z52.z.string() })
|
|
4289
|
-
]),
|
|
4290
|
-
buyer: PaymentBuyerSchema,
|
|
4291
|
-
billingAddress: PaymentAddressSchema,
|
|
4292
|
-
shippingAddress: PaymentAddressSchema,
|
|
4293
|
-
basketItems: z52.z.array(PaymentBasketItemsSchema)
|
|
4294
|
-
});
|
|
4295
|
-
var PaymentCheckCodeFor3DSchema = PaymentIyzicoSchema.extend({
|
|
4296
|
-
callbackUrl: z52.z.string()
|
|
4297
|
-
});
|
|
4298
|
-
var PaymentCheckCodeForIyzicoSchema = z52.z.object({
|
|
4246
|
+
var RefundV2RequestSchema = z52.z.object({
|
|
4299
4247
|
locale: z52.z.enum(["tr", "en"]).optional(),
|
|
4300
4248
|
conversationId: z52.z.string().optional(),
|
|
4301
|
-
price: z52.z.number(),
|
|
4302
|
-
paidPrice: z52.z.number(),
|
|
4303
|
-
currency: z52.z.string(),
|
|
4304
|
-
installment: InstallmentNumberSchema,
|
|
4305
|
-
basketId: z52.z.string().optional(),
|
|
4306
|
-
paymentChannel: PaymentChannelSchema.optional(),
|
|
4307
|
-
paymentGroup: PaymentGroupSchema.optional(),
|
|
4308
|
-
callbackUrl: z52.z.string(),
|
|
4309
|
-
buyer: PaymentBuyerSchema,
|
|
4310
|
-
billingAddress: PaymentAddressSchema,
|
|
4311
|
-
shippingAddress: PaymentAddressSchema,
|
|
4312
|
-
basketItems: z52.z.array(PaymentBasketItemsSchema)
|
|
4313
|
-
});
|
|
4314
|
-
var ItemTransactionsSchema = z52.z.object({
|
|
4315
|
-
paymentTransactionId: z52.z.string(),
|
|
4316
|
-
itemId: z52.z.string(),
|
|
4317
|
-
price: z52.z.number(),
|
|
4318
|
-
paidPrice: z52.z.number(),
|
|
4319
|
-
transactionStatus: z52.z.union([z52.z.literal(-1), z52.z.literal(0), z52.z.literal(1), z52.z.literal(2)]),
|
|
4320
|
-
blockageRate: z52.z.number(),
|
|
4321
|
-
blockageRateAmountMerchant: z52.z.number(),
|
|
4322
|
-
blockageResolvedDate: z52.z.string(),
|
|
4323
|
-
iyziCommissionFee: z52.z.number(),
|
|
4324
|
-
iyziCommissionRateAmount: z52.z.number(),
|
|
4325
|
-
merchantCommissionRate: z52.z.number(),
|
|
4326
|
-
merchantCommissionRateAmount: z52.z.number(),
|
|
4327
|
-
merchantPayoutAmount: z52.z.number(),
|
|
4328
|
-
convertedPayout: z52.z.object({
|
|
4329
|
-
paidPrice: z52.z.number(),
|
|
4330
|
-
iyziCommissionFee: z52.z.number(),
|
|
4331
|
-
iyziCommissionRateAmount: z52.z.number(),
|
|
4332
|
-
blockageRateAmount: z52.z.number(),
|
|
4333
|
-
blockageRateAmountMerchant: z52.z.number(),
|
|
4334
|
-
merchantPayoutAmount: z52.z.number(),
|
|
4335
|
-
iyziConversionRate: z52.z.number(),
|
|
4336
|
-
iyziConversionRateAmount: z52.z.number(),
|
|
4337
|
-
currency: z52.z.string()
|
|
4338
|
-
})
|
|
4339
|
-
});
|
|
4340
|
-
var FraudStatusSchema = z52.z.union([z52.z.literal(-1), z52.z.literal(0), z52.z.literal(1)]);
|
|
4341
|
-
var PaymentResultSchema = z52.z.object({
|
|
4342
|
-
status: z52.z.enum(["success", "failure"]),
|
|
4343
|
-
errorCode: z52.z.string(),
|
|
4344
|
-
errorMessage: z52.z.string(),
|
|
4345
|
-
errorGroup: z52.z.string(),
|
|
4346
|
-
locale: z52.z.enum(["tr", "en"]),
|
|
4347
|
-
systemTime: z52.z.number(),
|
|
4348
|
-
conversationId: z52.z.string(),
|
|
4349
4249
|
paymentId: z52.z.string(),
|
|
4350
|
-
price: z52.z.number(),
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
installment: InstallmentNumberSchema,
|
|
4354
|
-
basketId: z52.z.string(),
|
|
4355
|
-
binNumber: z52.z.string(),
|
|
4356
|
-
cardAssociation: z52.z.string(),
|
|
4357
|
-
cardFamily: z52.z.string(),
|
|
4358
|
-
cardType: z52.z.string(),
|
|
4359
|
-
fraudStatus: FraudStatusSchema,
|
|
4360
|
-
iyziCommissionFee: z52.z.number(),
|
|
4361
|
-
iyziCommissionRateAmount: z52.z.number(),
|
|
4362
|
-
merchantCommissionRate: z52.z.number(),
|
|
4363
|
-
merchantCommissionRateAmount: z52.z.number(),
|
|
4364
|
-
itemTransactions: z52.z.array(ItemTransactionsSchema)
|
|
4365
|
-
});
|
|
4366
|
-
var PaymentCheckCodeForIyzicoResultSchema = z52.z.object({
|
|
4367
|
-
status: z52.z.enum(["success", "failure"]),
|
|
4368
|
-
locale: z52.z.enum(["tr", "en"]),
|
|
4369
|
-
systemTime: z52.z.number(),
|
|
4370
|
-
conversationId: z52.z.string(),
|
|
4371
|
-
token: z52.z.string(),
|
|
4372
|
-
checkoutFormContent: z52.z.string(),
|
|
4373
|
-
tokenExpireTime: z52.z.number(),
|
|
4374
|
-
paymentPageUrl: z52.z.string(),
|
|
4375
|
-
payWithIyzicoPageUrl: z52.z.string(),
|
|
4376
|
-
errorCode: z52.z.string().optional(),
|
|
4377
|
-
errorMessage: z52.z.string().optional(),
|
|
4378
|
-
errorGroup: z52.z.string().optional()
|
|
4379
|
-
});
|
|
4380
|
-
var PaymentResultForIyzicoSchema = z52.z.object({
|
|
4381
|
-
token: z52.z.string(),
|
|
4382
|
-
callbackUrl: z52.z.string(),
|
|
4383
|
-
status: z52.z.enum(["success", "failure"]),
|
|
4384
|
-
paymentStatus: z52.z.enum([
|
|
4385
|
-
"SUCCESS",
|
|
4386
|
-
"FAILURE",
|
|
4387
|
-
"INIT_THREEDS",
|
|
4388
|
-
"CALLBACK_THREEDS",
|
|
4389
|
-
"BKM_POS_SELECTED",
|
|
4390
|
-
"CALLBACK_RECCO"
|
|
4391
|
-
]),
|
|
4392
|
-
errorCode: z52.z.string(),
|
|
4393
|
-
errorMessage: z52.z.string(),
|
|
4394
|
-
errorGroup: z52.z.string(),
|
|
4395
|
-
locale: z52.z.enum(["tr", "en"]),
|
|
4396
|
-
systemTime: z52.z.number(),
|
|
4397
|
-
conversationId: z52.z.string(),
|
|
4398
|
-
paymentId: z52.z.string(),
|
|
4399
|
-
price: z52.z.number(),
|
|
4400
|
-
paidPrice: z52.z.number(),
|
|
4401
|
-
currency: z52.z.string(),
|
|
4402
|
-
installment: InstallmentNumberSchema,
|
|
4403
|
-
basketId: z52.z.string(),
|
|
4404
|
-
binNumber: z52.z.string(),
|
|
4405
|
-
lastFourDigits: z52.z.string(),
|
|
4406
|
-
cardAssociation: z52.z.string(),
|
|
4407
|
-
cardFamily: z52.z.string(),
|
|
4408
|
-
cardType: z52.z.string(),
|
|
4409
|
-
fraudStatus: FraudStatusSchema,
|
|
4410
|
-
iyziCommissionFee: z52.z.number(),
|
|
4411
|
-
iyziCommissionRateAmount: z52.z.number(),
|
|
4412
|
-
merchantCommissionRate: z52.z.number(),
|
|
4413
|
-
merchantCommissionRateAmount: z52.z.number(),
|
|
4414
|
-
itemTransactions: z52.z.array(ItemTransactionsSchema),
|
|
4415
|
-
authCode: z52.z.string(),
|
|
4416
|
-
phase: z52.z.string(),
|
|
4417
|
-
hostReference: z52.z.string(),
|
|
4418
|
-
signature: z52.z.string()
|
|
4419
|
-
});
|
|
4420
|
-
var PaymentWith3DResultSchema = z52.z.object({
|
|
4421
|
-
status: z52.z.enum(["success", "failure"]),
|
|
4422
|
-
errorCode: z52.z.string(),
|
|
4423
|
-
errorMessage: z52.z.string(),
|
|
4424
|
-
errorGroup: z52.z.string(),
|
|
4425
|
-
locale: z52.z.enum(["tr", "en"]),
|
|
4426
|
-
systemTime: z52.z.number(),
|
|
4427
|
-
conversationId: z52.z.string(),
|
|
4428
|
-
htmlContent: z52.z.string()
|
|
4429
|
-
});
|
|
4430
|
-
var PaymentResultCancelSchema = z52.z.object({
|
|
4431
|
-
price: z52.z.string(),
|
|
4432
|
-
currency: z52.z.string(),
|
|
4433
|
-
paymentId: z52.z.string(),
|
|
4434
|
-
status: z52.z.enum(["success", "failure"]),
|
|
4435
|
-
errorCode: z52.z.string(),
|
|
4436
|
-
errorMessage: z52.z.string(),
|
|
4437
|
-
errorGroup: z52.z.string(),
|
|
4438
|
-
locale: z52.z.enum(["tr", "en"]),
|
|
4439
|
-
systemTime: z52.z.number(),
|
|
4440
|
-
conversationId: z52.z.string()
|
|
4250
|
+
price: z52.z.union([z52.z.number(), z52.z.string()]),
|
|
4251
|
+
currency: z52.z.enum(["TRY", "EUR", "USD", "GBP", "NOK", "CHF"]).optional(),
|
|
4252
|
+
ip: z52.z.string().optional()
|
|
4441
4253
|
});
|
|
4442
|
-
var IyzicoHTMLSchema = z52.z.object({
|
|
4443
|
-
status: z52.z.string(),
|
|
4444
|
-
locale: z52.z.string(),
|
|
4445
|
-
systemTime: z52.z.number(),
|
|
4446
|
-
conversationId: z52.z.string(),
|
|
4447
|
-
token: z52.z.string(),
|
|
4448
|
-
checkoutFormContent: z52.z.string(),
|
|
4449
|
-
tokenExpireTime: z52.z.number(),
|
|
4450
|
-
paymentPageUrl: z52.z.string(),
|
|
4451
|
-
payWithIyzicoPageUrl: z52.z.string(),
|
|
4452
|
-
signature: z52.z.string()
|
|
4453
|
-
});
|
|
4454
|
-
var IyzicoHTML3DSchema = z52.z.object({
|
|
4455
|
-
status: z52.z.string(),
|
|
4456
|
-
locale: z52.z.string(),
|
|
4457
|
-
systemTime: z52.z.number(),
|
|
4458
|
-
conversationId: z52.z.string(),
|
|
4459
|
-
threeDSHtmlContent: z52.z.string(),
|
|
4460
|
-
signature: z52.z.string()
|
|
4461
|
-
});
|
|
4462
|
-
var DEFAULT_PAYMENT_RESULT_IYZICO = getDefaultsForSchema(
|
|
4463
|
-
PaymentResultForIyzicoSchema
|
|
4464
|
-
);
|
|
4465
4254
|
var PresetSchema = z52.z.enum([
|
|
4466
4255
|
"today",
|
|
4467
4256
|
"yesterday",
|
|
@@ -4577,6 +4366,142 @@ var DeleteOptsSchema = z52.z.union([
|
|
|
4577
4366
|
z52.z.object({ versionId: z52.z.string(), governanceBypass: z52.z.boolean() }),
|
|
4578
4367
|
z52.z.object({})
|
|
4579
4368
|
]);
|
|
4369
|
+
var AddOrderInformationsSchema = ADD_ORDER_INFORMATIONS();
|
|
4370
|
+
var OrderStatusSchema = z52.z.string();
|
|
4371
|
+
var ProductBasketSchema = z52.z.object({
|
|
4372
|
+
_id: z52.z.string(),
|
|
4373
|
+
productId: z52.z.string(),
|
|
4374
|
+
images: ImageSchema,
|
|
4375
|
+
sku: z52.z.string(),
|
|
4376
|
+
description: z52.z.string().optional()
|
|
4377
|
+
});
|
|
4378
|
+
var OrderUserSchema = ADD_ORDER_USER().extend({
|
|
4379
|
+
ipAddress: z52.z.string().optional(),
|
|
4380
|
+
userAgent: z52.z.string().optional()
|
|
4381
|
+
});
|
|
4382
|
+
var OrderPaymentSchema = ADD_ORDER_PAYMENT().extend({
|
|
4383
|
+
providerPaymentId: z52.z.string().optional(),
|
|
4384
|
+
conversationId: z52.z.string().optional(),
|
|
4385
|
+
token: z52.z.string().optional()
|
|
4386
|
+
});
|
|
4387
|
+
var OrderBuyerSchema = ADD_ORDER_BUYER();
|
|
4388
|
+
var OrderShippingSchema = ADD_ORDER_SHIPPING();
|
|
4389
|
+
var OrderBillingSchema = ADD_ORDER_BILLING();
|
|
4390
|
+
var OrderBasketItemSchema = ADD_ORDER_BASKET_ITEM().extend({
|
|
4391
|
+
name: z52.z.string().optional(),
|
|
4392
|
+
price: PriceSchema,
|
|
4393
|
+
category1: z52.z.string().optional(),
|
|
4394
|
+
category2: z52.z.string().optional(),
|
|
4395
|
+
itemType: z52.z.string().optional()
|
|
4396
|
+
}).extend(MongoSchema.shape);
|
|
4397
|
+
var OrderShipmentSchema = ADD_ORDER_SHIPMENT().extend({
|
|
4398
|
+
orderId: z52.z.string().optional(),
|
|
4399
|
+
// 8959beed-0296-4ca7-8112-563829252bfa
|
|
4400
|
+
orderNumber: z52.z.string().optional(),
|
|
4401
|
+
// ABC12333322
|
|
4402
|
+
orderOrganizationId: z52.z.string().optional(),
|
|
4403
|
+
// 5f9d1b07-0296-4ca7-8112-563829252bfa
|
|
4404
|
+
offerId: z52.z.string().optional(),
|
|
4405
|
+
// 8e8cd00c-6fc4-4ae1-af46-013d78309287
|
|
4406
|
+
barcode: z52.z.string().optional(),
|
|
4407
|
+
// 88242290375
|
|
4408
|
+
trackingId: z52.z.string().optional(),
|
|
4409
|
+
// 1186e0d8-dd49-4fb9-b5ec-2d6af4146e32
|
|
4410
|
+
trackingNumber: z52.z.string().optional(),
|
|
4411
|
+
// 21634385
|
|
4412
|
+
trackingUrl: z52.z.string().optional(),
|
|
4413
|
+
// https://app.geliver.io/tracking/1186e0d8-dd49-4fb9-b5ec-2d6af4146e32
|
|
4414
|
+
trackingStatusCode: z52.z.string().optional(),
|
|
4415
|
+
// https://docs.geliver.io/docs/shipments_and_transaction/tracking_status_codes
|
|
4416
|
+
trackingStatusUpdate: z52.z.string().optional(),
|
|
4417
|
+
// 2026-01-30T12:09:13.3327+03:00
|
|
4418
|
+
labelFileType: z52.z.string().optional(),
|
|
4419
|
+
// PROVIDER_PDF
|
|
4420
|
+
labelUrl: z52.z.string().optional(),
|
|
4421
|
+
// https://labels3.geliver.io/labels/1186e0d8-dd49-4fb9-b5ec-2d6af4146e32.pdf
|
|
4422
|
+
labelResponsiveUrl: z52.z.string().optional()
|
|
4423
|
+
// https://api.geliver.io/api/v1/responsivelabels/1186e0d8-dd49-4fb9-b5ec-2d6af4146e32/1f6b
|
|
4424
|
+
});
|
|
4425
|
+
var OrderTotalSchema = z52.z.object({
|
|
4426
|
+
currency: z52.z.string().optional(),
|
|
4427
|
+
subtotal: z52.z.number().optional(),
|
|
4428
|
+
discount: z52.z.number().optional(),
|
|
4429
|
+
tax: z52.z.number().optional(),
|
|
4430
|
+
shipping: z52.z.number().optional(),
|
|
4431
|
+
grandTotal: z52.z.number().optional(),
|
|
4432
|
+
paid: z52.z.number().optional(),
|
|
4433
|
+
refunded: z52.z.number().optional()
|
|
4434
|
+
});
|
|
4435
|
+
var OrderSchema = SAVE_ORDER().extend({
|
|
4436
|
+
user: OrderUserSchema,
|
|
4437
|
+
payment: OrderPaymentSchema,
|
|
4438
|
+
buyer: OrderBuyerSchema,
|
|
4439
|
+
shippingAddress: OrderShippingSchema,
|
|
4440
|
+
billingAddress: OrderBillingSchema,
|
|
4441
|
+
basketItems: z52.z.array(OrderBasketItemSchema),
|
|
4442
|
+
shipment: OrderShipmentSchema,
|
|
4443
|
+
totals: OrderTotalSchema
|
|
4444
|
+
}).extend(MongoSchema.shape);
|
|
4445
|
+
var ORDER_STATUSES = [
|
|
4446
|
+
"pending_payment",
|
|
4447
|
+
"paid",
|
|
4448
|
+
"processing",
|
|
4449
|
+
"ready_to_ship",
|
|
4450
|
+
"shipped",
|
|
4451
|
+
"delivered",
|
|
4452
|
+
"cancelled"
|
|
4453
|
+
];
|
|
4454
|
+
var PAYMENT_STATUSES = [
|
|
4455
|
+
"pending",
|
|
4456
|
+
"paid",
|
|
4457
|
+
"failed",
|
|
4458
|
+
"cancelled",
|
|
4459
|
+
"partially_refunded",
|
|
4460
|
+
"refunded"
|
|
4461
|
+
];
|
|
4462
|
+
var FULFILLMENT_STATUSES = [
|
|
4463
|
+
"unfulfilled",
|
|
4464
|
+
"preparing",
|
|
4465
|
+
"ready_to_ship",
|
|
4466
|
+
"shipped",
|
|
4467
|
+
"delivered",
|
|
4468
|
+
"cancelled"
|
|
4469
|
+
];
|
|
4470
|
+
var PAYMENT_METHODS = [
|
|
4471
|
+
"checkout_form",
|
|
4472
|
+
"non_3ds",
|
|
4473
|
+
"3ds",
|
|
4474
|
+
"bank_transfer",
|
|
4475
|
+
"cash"
|
|
4476
|
+
];
|
|
4477
|
+
var SHIPPING_METHODS = [
|
|
4478
|
+
"information",
|
|
4479
|
+
"received",
|
|
4480
|
+
"pickup_scheduled",
|
|
4481
|
+
"pickup_out_for_collection",
|
|
4482
|
+
"pickup_failed",
|
|
4483
|
+
"package_accepted",
|
|
4484
|
+
"package_departed",
|
|
4485
|
+
"package_processing",
|
|
4486
|
+
"delivery_scheduled ",
|
|
4487
|
+
"out_for_delivery ",
|
|
4488
|
+
"package_damaged ",
|
|
4489
|
+
"package_forwarded_to_another_carrier ",
|
|
4490
|
+
"delivery_rescheduled ",
|
|
4491
|
+
"delivered",
|
|
4492
|
+
"package_lost",
|
|
4493
|
+
"package_undeliverable",
|
|
4494
|
+
"return_to_sender ",
|
|
4495
|
+
"package_canceled ",
|
|
4496
|
+
"other"
|
|
4497
|
+
];
|
|
4498
|
+
var DEFAULT_SAVE_ORDER = getDefaultsForSchema(SAVE_ORDER());
|
|
4499
|
+
var DEFAULT_ORDER_BUYER = getDefaultsForSchema(OrderBuyerSchema);
|
|
4500
|
+
var DEFAULT_ORDER_SHIPPING = getDefaultsForSchema(OrderShippingSchema);
|
|
4501
|
+
var DEFAULT_ORDER_BILLING = getDefaultsForSchema(OrderBillingSchema);
|
|
4502
|
+
var DEFAULT_ORDER_SHIPMENT = getDefaultsForSchema(OrderShipmentSchema);
|
|
4503
|
+
var DEFAULT_ORDER_USER = getDefaultsForSchema(OrderUserSchema);
|
|
4504
|
+
var DEFAULT_ORDER = getDefaultsForSchema(OrderSchema);
|
|
4580
4505
|
var CommentSchema = COMMENT_POST().extend({
|
|
4581
4506
|
name: z52.z.string(),
|
|
4582
4507
|
text: z52.z.string(),
|
|
@@ -5656,14 +5581,14 @@ exports.ACTIVATE_USER = ACTIVATE_USER;
|
|
|
5656
5581
|
exports.ADD_ADDRESS = ADD_ADDRESS;
|
|
5657
5582
|
exports.ADD_AGREEMENT = ADD_AGREEMENT;
|
|
5658
5583
|
exports.ADD_AGREEMENTS = ADD_AGREEMENTS;
|
|
5659
|
-
exports.
|
|
5660
|
-
exports.
|
|
5584
|
+
exports.ADD_BASKET_ITEM_IYZICO = ADD_BASKET_ITEM_IYZICO;
|
|
5585
|
+
exports.ADD_BILLING_ADDRESS_IYZICO = ADD_BILLING_ADDRESS_IYZICO;
|
|
5661
5586
|
exports.ADD_BRAND = ADD_BRAND;
|
|
5662
5587
|
exports.ADD_BRANDS = ADD_BRANDS;
|
|
5663
5588
|
exports.ADD_BUCKET_CONFIG = ADD_BUCKET_CONFIG;
|
|
5664
5589
|
exports.ADD_BUCKET_VERSION = ADD_BUCKET_VERSION;
|
|
5665
|
-
exports.
|
|
5666
|
-
exports.
|
|
5590
|
+
exports.ADD_BUYER_IYZICO = ADD_BUYER_IYZICO;
|
|
5591
|
+
exports.ADD_CARD_IYZICO = ADD_CARD_IYZICO;
|
|
5667
5592
|
exports.ADD_CART = ADD_CART;
|
|
5668
5593
|
exports.ADD_CATEGORIES = ADD_CATEGORIES;
|
|
5669
5594
|
exports.ADD_CATEGORY = ADD_CATEGORY;
|
|
@@ -5684,19 +5609,27 @@ exports.ADD_CUSTOMERS = ADD_CUSTOMERS;
|
|
|
5684
5609
|
exports.ADD_EXTERNAL = ADD_EXTERNAL;
|
|
5685
5610
|
exports.ADD_IYZICO = ADD_IYZICO;
|
|
5686
5611
|
exports.ADD_OBJECT = ADD_OBJECT;
|
|
5687
|
-
exports.
|
|
5612
|
+
exports.ADD_ORDER_BASKET_ITEM = ADD_ORDER_BASKET_ITEM;
|
|
5613
|
+
exports.ADD_ORDER_BILLING = ADD_ORDER_BILLING;
|
|
5614
|
+
exports.ADD_ORDER_BUYER = ADD_ORDER_BUYER;
|
|
5615
|
+
exports.ADD_ORDER_CASH = ADD_ORDER_CASH;
|
|
5616
|
+
exports.ADD_ORDER_INFORMATIONS = ADD_ORDER_INFORMATIONS;
|
|
5617
|
+
exports.ADD_ORDER_PAYMENT = ADD_ORDER_PAYMENT;
|
|
5618
|
+
exports.ADD_ORDER_SHIPMENT = ADD_ORDER_SHIPMENT;
|
|
5619
|
+
exports.ADD_ORDER_SHIPPING = ADD_ORDER_SHIPPING;
|
|
5620
|
+
exports.ADD_ORDER_USER = ADD_ORDER_USER;
|
|
5688
5621
|
exports.ADD_PAYMENT_CARD = ADD_PAYMENT_CARD;
|
|
5689
|
-
exports.
|
|
5690
|
-
exports.
|
|
5691
|
-
exports.
|
|
5622
|
+
exports.ADD_PAYMENT_CARD_IYZICO = ADD_PAYMENT_CARD_IYZICO;
|
|
5623
|
+
exports.ADD_PAYMENT_CARD_IYZICO_NON_3D = ADD_PAYMENT_CARD_IYZICO_NON_3D;
|
|
5624
|
+
exports.ADD_PAYMENT_IYZICO = ADD_PAYMENT_IYZICO;
|
|
5625
|
+
exports.ADD_PAYMENT_IYZICO_NON_3D = ADD_PAYMENT_IYZICO_NON_3D;
|
|
5692
5626
|
exports.ADD_POST = ADD_POST;
|
|
5693
5627
|
exports.ADD_POSTS = ADD_POSTS;
|
|
5694
5628
|
exports.ADD_PRODUCT = ADD_PRODUCT;
|
|
5695
5629
|
exports.ADD_PRODUCTS = ADD_PRODUCTS;
|
|
5696
5630
|
exports.ADD_QUESTION = ADD_QUESTION;
|
|
5697
5631
|
exports.ADD_REVIEW = ADD_REVIEW;
|
|
5698
|
-
exports.
|
|
5699
|
-
exports.ADD_SHIPPING_ADDRESS = ADD_SHIPPING_ADDRESS;
|
|
5632
|
+
exports.ADD_SHIPPING_ADDRESS_IYZICO = ADD_SHIPPING_ADDRESS_IYZICO;
|
|
5700
5633
|
exports.ADD_SHIPPING_SHIPMENT = ADD_SHIPPING_SHIPMENT;
|
|
5701
5634
|
exports.ADD_SHIPPING_SHIPMENT_ADDRESS = ADD_SHIPPING_SHIPMENT_ADDRESS;
|
|
5702
5635
|
exports.ADD_SOCIAL_MEDIA_LINKS = ADD_SOCIAL_MEDIA_LINKS;
|
|
@@ -5712,7 +5645,7 @@ exports.ANALYZE = ANALYZE;
|
|
|
5712
5645
|
exports.ActionItemSchema = ActionItemSchema;
|
|
5713
5646
|
exports.ActionSchema = ActionSchema;
|
|
5714
5647
|
exports.ActiveFilterSchema = ActiveFilterSchema;
|
|
5715
|
-
exports.
|
|
5648
|
+
exports.AddOrderInformationsSchema = AddOrderInformationsSchema;
|
|
5716
5649
|
exports.AddressSchema = AddressSchema;
|
|
5717
5650
|
exports.AgentDetailsSSchema = AgentDetailsSSchema;
|
|
5718
5651
|
exports.AgreementSchema = AgreementSchema;
|
|
@@ -5790,11 +5723,12 @@ exports.DEFAULT_IP_ADDRESS = DEFAULT_IP_ADDRESS;
|
|
|
5790
5723
|
exports.DEFAULT_IYZICO = DEFAULT_IYZICO;
|
|
5791
5724
|
exports.DEFAULT_LOCALES_ADMIN = DEFAULT_LOCALES_ADMIN;
|
|
5792
5725
|
exports.DEFAULT_LOCALES_WEB = DEFAULT_LOCALES_WEB;
|
|
5793
|
-
exports.
|
|
5794
|
-
exports.
|
|
5795
|
-
exports.
|
|
5796
|
-
exports.
|
|
5797
|
-
exports.
|
|
5726
|
+
exports.DEFAULT_ORDER = DEFAULT_ORDER;
|
|
5727
|
+
exports.DEFAULT_ORDER_BILLING = DEFAULT_ORDER_BILLING;
|
|
5728
|
+
exports.DEFAULT_ORDER_BUYER = DEFAULT_ORDER_BUYER;
|
|
5729
|
+
exports.DEFAULT_ORDER_SHIPMENT = DEFAULT_ORDER_SHIPMENT;
|
|
5730
|
+
exports.DEFAULT_ORDER_SHIPPING = DEFAULT_ORDER_SHIPPING;
|
|
5731
|
+
exports.DEFAULT_ORDER_USER = DEFAULT_ORDER_USER;
|
|
5798
5732
|
exports.DEFAULT_POST = DEFAULT_POST;
|
|
5799
5733
|
exports.DEFAULT_POST_COUNTS = DEFAULT_POST_COUNTS;
|
|
5800
5734
|
exports.DEFAULT_PRICE = DEFAULT_PRICE;
|
|
@@ -5802,9 +5736,9 @@ exports.DEFAULT_PRODUCT = DEFAULT_PRODUCT;
|
|
|
5802
5736
|
exports.DEFAULT_PRODUCT_AND_VARIANT = DEFAULT_PRODUCT_AND_VARIANT;
|
|
5803
5737
|
exports.DEFAULT_QUESTION = DEFAULT_QUESTION;
|
|
5804
5738
|
exports.DEFAULT_REVIEW = DEFAULT_REVIEW;
|
|
5739
|
+
exports.DEFAULT_SAVE_ORDER = DEFAULT_SAVE_ORDER;
|
|
5805
5740
|
exports.DEFAULT_SEARCH_STATE = DEFAULT_SEARCH_STATE;
|
|
5806
5741
|
exports.DEFAULT_SELLER_DATA = DEFAULT_SELLER_DATA;
|
|
5807
|
-
exports.DEFAULT_SHIPMENT = DEFAULT_SHIPMENT;
|
|
5808
5742
|
exports.DEFAULT_SYSTEM_LOCALES = DEFAULT_SYSTEM_LOCALES;
|
|
5809
5743
|
exports.DEFAULT_TABLE_INDEX = DEFAULT_TABLE_INDEX;
|
|
5810
5744
|
exports.DEFAULT_TAWKTO = DEFAULT_TAWKTO;
|
|
@@ -5850,6 +5784,7 @@ exports.ExternalSchema = ExternalSchema;
|
|
|
5850
5784
|
exports.ExternalTawkToSchema = ExternalTawkToSchema2;
|
|
5851
5785
|
exports.ExternalYandexSchema = ExternalYandexSchema;
|
|
5852
5786
|
exports.FILE = FILE;
|
|
5787
|
+
exports.FULFILLMENT_STATUSES = FULFILLMENT_STATUSES;
|
|
5853
5788
|
exports.FieldsSchema = FieldsSchema;
|
|
5854
5789
|
exports.FileTypeSchema = FileTypeSchema;
|
|
5855
5790
|
exports.GEMINI_PROMPT = GEMINI_PROMPT;
|
|
@@ -5898,11 +5833,7 @@ exports.InputValueSchema = InputValueSchema;
|
|
|
5898
5833
|
exports.InstallmentCardSchema = InstallmentCardSchema;
|
|
5899
5834
|
exports.InstallmentDetailsSchema = InstallmentDetailsSchema;
|
|
5900
5835
|
exports.InstallmentPriceSchema = InstallmentPriceSchema;
|
|
5901
|
-
exports.InstallmentSchema = InstallmentSchema;
|
|
5902
5836
|
exports.IpDetailsSchema = IpDetailsSchema;
|
|
5903
|
-
exports.ItemTransactionsSchema = ItemTransactionsSchema;
|
|
5904
|
-
exports.IyzicoHTML3DSchema = IyzicoHTML3DSchema;
|
|
5905
|
-
exports.IyzicoHTMLSchema = IyzicoHTMLSchema;
|
|
5906
5837
|
exports.LIKE_POST = LIKE_POST;
|
|
5907
5838
|
exports.LOGIN_USER = LOGIN_USER;
|
|
5908
5839
|
exports.LifeCycleConfigSchema = LifeCycleConfigSchema;
|
|
@@ -5916,9 +5847,22 @@ exports.MailOptionsSchema = MailOptionsSchema;
|
|
|
5916
5847
|
exports.MenuItemSchema = MenuItemSchema;
|
|
5917
5848
|
exports.MongoSchema = MongoSchema;
|
|
5918
5849
|
exports.NavigationSchema = NavigationSchema;
|
|
5850
|
+
exports.ORDER_STATUSES = ORDER_STATUSES;
|
|
5851
|
+
exports.OrderBasketItemSchema = OrderBasketItemSchema;
|
|
5852
|
+
exports.OrderBillingSchema = OrderBillingSchema;
|
|
5853
|
+
exports.OrderBuyerSchema = OrderBuyerSchema;
|
|
5854
|
+
exports.OrderPaymentSchema = OrderPaymentSchema;
|
|
5855
|
+
exports.OrderSchema = OrderSchema;
|
|
5919
5856
|
exports.OrderSettingsSchema = OrderSettingsSchema;
|
|
5857
|
+
exports.OrderShipmentSchema = OrderShipmentSchema;
|
|
5858
|
+
exports.OrderShippingSchema = OrderShippingSchema;
|
|
5859
|
+
exports.OrderStatusSchema = OrderStatusSchema;
|
|
5860
|
+
exports.OrderTotalSchema = OrderTotalSchema;
|
|
5861
|
+
exports.OrderUserSchema = OrderUserSchema;
|
|
5920
5862
|
exports.PASSWORD_RESET = PASSWORD_RESET;
|
|
5921
5863
|
exports.PASSWORD_RESET_COMPLETE = PASSWORD_RESET_COMPLETE;
|
|
5864
|
+
exports.PAYMENT_METHODS = PAYMENT_METHODS;
|
|
5865
|
+
exports.PAYMENT_STATUSES = PAYMENT_STATUSES;
|
|
5922
5866
|
exports.PRESIGNED_GET_OBJECT = PRESIGNED_GET_OBJECT;
|
|
5923
5867
|
exports.PRESIGNED_URL = PRESIGNED_URL;
|
|
5924
5868
|
exports.PRICE = PRICE;
|
|
@@ -5926,22 +5870,9 @@ exports.PRODUCT_PROPERTIES = PRODUCT_PROPERTIES;
|
|
|
5926
5870
|
exports.PackageTemplateSchema = PackageTemplateSchema;
|
|
5927
5871
|
exports.PaginationQuerySchema = PaginationQuerySchema;
|
|
5928
5872
|
exports.PassResetMailSchema = PassResetMailSchema;
|
|
5929
|
-
exports.PaymentAddressSchema = PaymentAddressSchema;
|
|
5930
|
-
exports.PaymentBasketItemsSchema = PaymentBasketItemsSchema;
|
|
5931
|
-
exports.PaymentBuyerSchema = PaymentBuyerSchema;
|
|
5932
5873
|
exports.PaymentCardSchema = PaymentCardSchema;
|
|
5933
|
-
exports.PaymentCheckCodeFor3DSchema = PaymentCheckCodeFor3DSchema;
|
|
5934
|
-
exports.PaymentCheckCodeForIyzicoResultSchema = PaymentCheckCodeForIyzicoResultSchema;
|
|
5935
|
-
exports.PaymentCheckCodeForIyzicoSchema = PaymentCheckCodeForIyzicoSchema;
|
|
5936
|
-
exports.PaymentIyzicoSchema = PaymentIyzicoSchema;
|
|
5937
5874
|
exports.PaymentMethodsSchema = PaymentMethodsSchema;
|
|
5938
|
-
exports.PaymentResultCancelSchema = PaymentResultCancelSchema;
|
|
5939
|
-
exports.PaymentResultForIyzicoSchema = PaymentResultForIyzicoSchema;
|
|
5940
|
-
exports.PaymentResultSchema = PaymentResultSchema;
|
|
5941
|
-
exports.PaymentSchema = PaymentSchema;
|
|
5942
5875
|
exports.PaymentSettingsSchema = PaymentSettingsSchema;
|
|
5943
|
-
exports.PaymentStatusSchema = PaymentStatusSchema;
|
|
5944
|
-
exports.PaymentWith3DResultSchema = PaymentWith3DResultSchema;
|
|
5945
5876
|
exports.PhoneCodeSchema = PhoneCodeSchema;
|
|
5946
5877
|
exports.PopProductSchema = PopProductSchema;
|
|
5947
5878
|
exports.PostCountsSchema = PostCountsSchema;
|
|
@@ -5960,7 +5891,9 @@ exports.ProxyItemSchema = ProxyItemSchema;
|
|
|
5960
5891
|
exports.PutObjectSchema = PutObjectSchema;
|
|
5961
5892
|
exports.QueryParamsSchema = QueryParamsSchema;
|
|
5962
5893
|
exports.QuestionSchema = QuestionSchema;
|
|
5894
|
+
exports.REFUND_PAYMENT = REFUND_PAYMENT;
|
|
5963
5895
|
exports.RETURN_SHIPPING_SHIPMENT = RETURN_SHIPPING_SHIPMENT;
|
|
5896
|
+
exports.RefundV2RequestSchema = RefundV2RequestSchema;
|
|
5964
5897
|
exports.RegisterMailSchema = RegisterMailSchema;
|
|
5965
5898
|
exports.ReqHeaderGoogleSchema = ReqHeaderGoogleSchema;
|
|
5966
5899
|
exports.ReqHeaderYandexSchema = ReqHeaderYandexSchema;
|
|
@@ -5969,10 +5902,11 @@ exports.ReqXMLYandexSchema = ReqXMLYandexSchema;
|
|
|
5969
5902
|
exports.ResumeSchema = ResumeSchema;
|
|
5970
5903
|
exports.ReviewSchema = ReviewSchema;
|
|
5971
5904
|
exports.RouteSchema = RouteSchema;
|
|
5972
|
-
exports.
|
|
5905
|
+
exports.SAVE_ORDER = SAVE_ORDER;
|
|
5973
5906
|
exports.SEND_SMS = SEND_SMS;
|
|
5974
5907
|
exports.SET_QUANTITY = SET_QUANTITY;
|
|
5975
5908
|
exports.SHIPPING_ITEM = SHIPPING_ITEM;
|
|
5909
|
+
exports.SHIPPING_METHODS = SHIPPING_METHODS;
|
|
5976
5910
|
exports.SHIPPING_ORDER_INFO = SHIPPING_ORDER_INFO;
|
|
5977
5911
|
exports.SHIPPING_PACKAGE_DIMENSIONS = SHIPPING_PACKAGE_DIMENSIONS;
|
|
5978
5912
|
exports.SHIPPING_PROVIDER = SHIPPING_PROVIDER;
|