From 8f327158d560d68fd131c88853fc6ad816e35a3b Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Sun, 16 Nov 2025 01:53:09 +0330 Subject: [PATCH] update --- docs/model.ndm2 | 1305 ++++++++--------- .../CreateContractOtpTokenCommandHandler.cs | 10 +- .../Services/UserService.cs | 3 +- .../AcceptContractRequestValidator.cs | 2 +- .../CreateContractOtpTokenRequestValidator.cs | 2 +- 5 files changed, 595 insertions(+), 727 deletions(-) diff --git a/docs/model.ndm2 b/docs/model.ndm2 index abd8e1b..9df5b8a 100644 --- a/docs/model.ndm2 +++ b/docs/model.ndm2 @@ -12904,99 +12904,6 @@ "dataCompressions": [] } }, - { - "objectType": "Table_MSSQL", - "name": "CreateContractOtpTokenRequest", - "comment": "ورودی ایجاد توکن Otp جدید", - "owner": "", - "isChangeTracking": false, - "isTrackColumnsUpdated": false, - "oldName": "CreateNewOtpTokenRequest", - "isSystemTable": false, - "createTime": "", - "modifyTime": "", - "objectID": 1890, - "numberOfRows": 0, - "identityCurrent": 0, - "dataLength": 0, - "indexLength": 0, - "fields": [ - { - "objectType": "TableField_MSSQL", - "name": "CotractGuid", - "type": "nvarchar", - "size": -2147483648, - "isNullable": "Yes", - "scale": -2147483648, - "comment": "شناسه یکتای قرارداد", - "computedExpression": "", - "defaultValue": "", - "defaultValueType": "None", - "schema": "", - "userDefinedType": "", - "collate": "", - "isWithValues": false, - "isFilestream": false, - "isColumnSet": false, - "isPersisted": false, - "isSparse": false, - "isRowGUIDColumn": false, - "oldName": "CotractGuid", - "computedBaseType": "", - "isDefaultConstraint": false, - "defaultConstraint": "", - "isIdentity": false, - "isExistingField": false, - "identitySeed": 0, - "identityIncrement": 0, - "identityIsNotForReplication": false - } - ], - "indexes": [], - "primaryKey": { - "objectType": "PrimaryKey_MSSQL", - "name": "_copy_15", - "fields": [], - "fillFactor": 0, - "oldName": "", - "isClustered": true, - "isPadded": false, - "noRecomputeStatistics": false, - "ignoreDuplicatedKeyValues": false, - "allowRowLocks": true, - "allowPageLocks": true, - "storage": { - "objectType": "Storage_MSSQL", - "name": "", - "oldName": "", - "storageType": "Default", - "filegroup": "", - "textImageFilegroup": "", - "filestreamFilegroup": "", - "partitionScheme": "", - "partitionColumn": "", - "filestreamPartitionScheme": "", - "dataCompressions": [] - } - }, - "foreignKeys": [], - "uniques": [], - "checks": [], - "triggers": [], - "storage": { - "objectType": "Storage_MSSQL", - "name": "", - "oldName": "", - "storageType": "Default", - "filegroup": "", - "textImageFilegroup": "", - "filestreamFilegroup": "", - "partitionScheme": "", - "partitionColumn": "", - "filestreamPartitionScheme": "", - "dataCompressions": [] - } - }, { "objectType": "Table_MSSQL", "name": "UserService", @@ -13254,36 +13161,6 @@ "identityIncrement": 0, "identityIsNotForReplication": false }, - { - "objectType": "TableField_MSSQL", - "name": "CreateContractOtpToken", - "type": "Command", - "size": -2147483648, - "isNullable": "Yes", - "scale": -2147483648, - "comment": "رسال otp قرارداد", - "computedExpression": "", - "defaultValue": "", - "defaultValueType": "None", - "schema": "", - "userDefinedType": "", - "collate": "", - "isWithValues": false, - "isFilestream": false, - "isColumnSet": false, - "isPersisted": false, - "isSparse": false, - "isRowGUIDColumn": false, - "oldName": "CreateContractOtpToken", - "computedBaseType": "", - "isDefaultConstraint": false, - "defaultConstraint": "", - "isIdentity": false, - "isExistingField": false, - "identitySeed": 0, - "identityIncrement": 0, - "identityIsNotForReplication": false - }, { "objectType": "TableField_MSSQL", "name": "AcceptContract", @@ -13663,7 +13540,7 @@ "name": "Code", "type": "nvarchar", "size": -2147483648, - "isNullable": "Yes", + "isNullable": "No", "scale": -2147483648, "comment": "کد otp", "computedExpression": "", @@ -13693,7 +13570,7 @@ "name": "ContractHtml", "type": "nvarchar", "size": 10000, - "isNullable": "Yes", + "isNullable": "No", "scale": -2147483648, "comment": "فایل قرارداد", "computedExpression": "", @@ -13717,6 +13594,36 @@ "identitySeed": 0, "identityIncrement": 0, "identityIsNotForReplication": false + }, + { + "objectType": "TableField_MSSQL", + "name": "SignGuid", + "type": "nvarchar", + "size": 36, + "isNullable": "No", + "scale": -2147483648, + "comment": "شناسه یکتای امضا", + "computedExpression": "", + "defaultValue": "", + "defaultValueType": "None", + "schema": "", + "userDefinedType": "", + "collate": "", + "isWithValues": false, + "isFilestream": false, + "isColumnSet": false, + "isPersisted": false, + "isSparse": false, + "isRowGUIDColumn": false, + "oldName": "SignGuid", + "computedBaseType": "", + "isDefaultConstraint": false, + "defaultConstraint": "", + "isIdentity": false, + "isExistingField": false, + "identitySeed": 0, + "identityIncrement": 0, + "identityIsNotForReplication": false } ], "indexes": [], @@ -13789,8 +13696,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "UserService", - "x": 990, - "y": 3234, + "x": 980, + "y": 3410, "width": 400, "height": 326, "isBold": false, @@ -13805,8 +13712,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "UpdateUserRequest", - "x": 1300, - "y": 2900, + "x": 1290, + "y": 3040, "width": 400, "height": 270, "isBold": false, @@ -13821,8 +13728,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "DeleteUserRequest", - "x": 1500, - "y": 3220, + "x": 1480, + "y": 3350, "width": 400, "height": 106, "isBold": false, @@ -13837,8 +13744,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetUserResponse", - "x": 840, - "y": 2250, + "x": 830, + "y": 2440, "width": 400, "height": 390, "isBold": false, @@ -13853,8 +13760,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserByFilterRequest", - "x": 480, - "y": 3330, + "x": 470, + "y": 3510, "width": 400, "height": 137, "isBold": false, @@ -13870,7 +13777,7 @@ "schemaName": "FrontOffice", "tableName": "GetAllUserByFilterFilter", "x": 30, - "y": 3230, + "y": 3410, "width": 400, "height": 330, "isBold": false, @@ -13885,8 +13792,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserByFilterResponse", - "x": 990, - "y": 3570, + "x": 980, + "y": 3790, "width": 400, "height": 118, "isBold": false, @@ -13901,8 +13808,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserByFilterResponseModel", - "x": 990, - "y": 3740, + "x": 980, + "y": 3950, "width": 400, "height": 350, "isBold": false, @@ -13917,8 +13824,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "UserAddressService", - "x": 540, - "y": 4770, + "x": 2850, + "y": 660, "width": 400, "height": 200, "isBold": false, @@ -13933,8 +13840,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "CreateNewUserAddressRequest", - "x": 1570, - "y": 4650, + "x": 3880, + "y": 540, "width": 400, "height": 213, "isBold": false, @@ -13949,8 +13856,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "CreateNewUserAddressResponse", - "x": 920, - "y": 4460, + "x": 3230, + "y": 350, "width": 400, "height": 106, "isBold": false, @@ -13965,8 +13872,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "UpdateUserAddressRequest", - "x": 1060, - "y": 4610, + "x": 3370, + "y": 510, "width": 400, "height": 213, "isBold": false, @@ -13981,8 +13888,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "DeleteUserAddressRequest", - "x": 410, - "y": 4160, + "x": 2720, + "y": 30, "width": 400, "height": 106, "isBold": false, @@ -13997,8 +13904,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetUserAddressRequest", - "x": 30, - "y": 4820, + "x": 2340, + "y": 710, "width": 400, "height": 106, "isBold": false, @@ -14013,8 +13920,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetUserAddressResponse", - "x": 540, - "y": 5030, + "x": 2850, + "y": 920, "width": 400, "height": 213, "isBold": false, @@ -14029,8 +13936,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserAddressByFilterRequest", - "x": 2090, - "y": 4910, + "x": 4390, + "y": 810, "width": 400, "height": 137, "isBold": false, @@ -14045,8 +13952,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserAddressByFilterFilter", - "x": 2540, - "y": 4920, + "x": 4850, + "y": 810, "width": 400, "height": 213, "isBold": false, @@ -14061,8 +13968,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserAddressByFilterResponse", - "x": 2090, - "y": 4730, + "x": 4390, + "y": 630, "width": 400, "height": 118, "isBold": false, @@ -14077,8 +13984,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserAddressByFilterResponseModel", - "x": 2540, - "y": 4650, + "x": 4850, + "y": 540, "width": 400, "height": 213, "isBold": false, @@ -14093,8 +14000,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "PackageService", - "x": 3890, - "y": 4570, + "x": 3860, + "y": 4810, "width": 400, "height": 120, "isBold": false, @@ -14109,8 +14016,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetPackageRequest", - "x": 4330, - "y": 4570, + "x": 4310, + "y": 4800, "width": 400, "height": 106, "isBold": false, @@ -14125,8 +14032,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetPackageResponse", - "x": 3890, - "y": 4740, + "x": 3860, + "y": 4990, "width": 400, "height": 175, "isBold": false, @@ -14141,8 +14048,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllPackageByFilterRequest", - "x": 3450, - "y": 4560, + "x": 3400, + "y": 4800, "width": 400, "height": 137, "isBold": false, @@ -14157,8 +14064,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllPackageByFilterFilter", - "x": 3000, - "y": 4540, + "x": 2950, + "y": 4780, "width": 400, "height": 175, "isBold": false, @@ -14173,8 +14080,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllPackageByFilterResponse", - "x": 3890, - "y": 4390, + "x": 3860, + "y": 4610, "width": 400, "height": 118, "isBold": false, @@ -14189,8 +14096,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllPackageByFilterResponseModel", - "x": 3890, - "y": 4160, + "x": 3860, + "y": 4370, "width": 400, "height": 175, "isBold": false, @@ -14205,8 +14112,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "UserOrderService", - "x": 3310, - "y": 630, + "x": 530, + "y": 4970, "width": 400, "height": 175, "isBold": false, @@ -14221,8 +14128,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "CreateNewUserOrderRequest", - "x": 3810, - "y": 440, + "x": 1030, + "y": 4770, "width": 400, "height": 230, "isBold": false, @@ -14237,8 +14144,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "CreateNewUserOrderResponse", - "x": 4310, - "y": 600, + "x": 1530, + "y": 4930, "width": 400, "height": 106, "isBold": false, @@ -14253,8 +14160,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "UpdateUserOrderRequest", - "x": 3180, - "y": 30, + "x": 400, + "y": 4370, "width": 400, "height": 130, "isBold": false, @@ -14269,8 +14176,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "DeleteUserOrderRequest", - "x": 2810, - "y": 670, + "x": 30, + "y": 5000, "width": 400, "height": 106, "isBold": false, @@ -14285,8 +14192,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetUserOrderRequest", - "x": 3310, - "y": 860, + "x": 530, + "y": 5190, "width": 400, "height": 106, "isBold": false, @@ -14301,8 +14208,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetUserOrderResponse", - "x": 4810, - "y": 720, + "x": 2030, + "y": 5050, "width": 400, "height": 230, "isBold": false, @@ -14317,8 +14224,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserOrderByFilterRequest", - "x": 4810, - "y": 530, + "x": 2030, + "y": 4870, "width": 400, "height": 137, "isBold": false, @@ -14333,8 +14240,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserOrderByFilterFilter", - "x": 5260, - "y": 480, + "x": 2480, + "y": 4820, "width": 400, "height": 240, "isBold": false, @@ -14349,8 +14256,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserOrderByFilterResponse", - "x": 3570, - "y": 210, + "x": 790, + "y": 4550, "width": 400, "height": 118, "isBold": false, @@ -14365,8 +14272,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllUserOrderByFilterResponseModel", - "x": 4010, - "y": 160, + "x": 1230, + "y": 4490, "width": 400, "height": 230, "isBold": false, @@ -14381,8 +14288,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "CreateNewOtpTokenRequest", - "x": 4040, - "y": 3470, + "x": 5000, + "y": 3690, "width": 400, "height": 110, "isBold": false, @@ -14397,8 +14304,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "CreateNewOtpTokenResponse", - "x": 4040, - "y": 3270, + "x": 5000, + "y": 3490, "width": 400, "height": 150, "isBold": false, @@ -14413,8 +14320,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "VerifyOtpTokenRequest", - "x": 3020, - "y": 3250, + "x": 3990, + "y": 3460, "width": 400, "height": 150, "isBold": false, @@ -14429,8 +14336,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "VerifyOtpTokenResponse", - "x": 3530, - "y": 3250, + "x": 4500, + "y": 3470, "width": 400, "height": 170, "isBold": false, @@ -14445,8 +14352,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "UserAvatarFileModel", - "x": 1750, - "y": 2960, + "x": 1730, + "y": 3100, "width": 280, "height": 140, "isBold": false, @@ -14461,8 +14368,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "SetAddressAsDefaultRequest", - "x": 800, - "y": 4310, + "x": 3100, + "y": 190, "width": 400, "height": 106, "isBold": false, @@ -14477,8 +14384,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "TransactionTypeEnum", - "x": 2360, - "y": 1270, + "x": 1880, + "y": 690, "width": 250, "height": 110, "isBold": false, @@ -14493,8 +14400,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "CurrencyEnum", - "x": 2010, - "y": 730, + "x": 1560, + "y": 1090, "width": 200, "height": 110, "isBold": false, @@ -14510,7 +14417,7 @@ "schemaName": "FrontOffice", "tableName": "TransactionService", "x": 500, - "y": 1870, + "y": 2060, "width": 520, "height": 160, "isBold": false, @@ -14526,7 +14433,7 @@ "schemaName": "FrontOffice", "tableName": "GetTransactionRequest", "x": 1190, - "y": 1980, + "y": 2170, "width": 400, "height": 110, "isBold": false, @@ -14541,8 +14448,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetTransactionResponse", - "x": 1190, - "y": 1440, + "x": 1450, + "y": 1630, "width": 420, "height": 490, "isBold": false, @@ -14557,8 +14464,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllTransactionByFilterRequest", - "x": 1460, - "y": 1250, + "x": 1810, + "y": 1440, "width": 400, "height": 137, "isBold": false, @@ -14573,8 +14480,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllTransactionByFilterFilter", - "x": 1910, - "y": 1080, + "x": 1810, + "y": 900, "width": 400, "height": 490, "isBold": false, @@ -14589,8 +14496,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllTransactionByFilterResponse", - "x": 2310, - "y": 370, + "x": 780, + "y": 280, "width": 350, "height": 118, "isBold": false, @@ -14605,8 +14512,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "GetAllTransactionByFilterResponseModel", - "x": 2280, - "y": 540, + "x": 1240, + "y": 90, "width": 410, "height": 490, "isBold": false, @@ -14621,8 +14528,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "PaymentRequestRequest", - "x": 1940, - "y": 100, + "x": 1490, + "y": 630, "width": 330, "height": 230, "isBold": false, @@ -14637,8 +14544,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "PaymentRequestResponse", - "x": 570, - "y": 2080, + "x": 580, + "y": 2270, "width": 380, "height": 106, "isBold": false, @@ -14654,7 +14561,7 @@ "schemaName": "FrontOffice", "tableName": "PaymentVerificationRequest", "x": 410, - "y": 30, + "y": 110, "width": 330, "height": 120, "isBold": false, @@ -14670,7 +14577,7 @@ "schemaName": "FrontOffice", "tableName": "PaymentVerificationResponse", "x": 30, - "y": 1850, + "y": 2040, "width": 360, "height": 190, "isBold": false, @@ -14685,8 +14592,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "AdminGetJwtTokenRequest", - "x": 2510, - "y": 3240, + "x": 3490, + "y": 3450, "width": 400, "height": 128, "isBold": false, @@ -14701,8 +14608,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "AdminGetJwtTokenResponse", - "x": 2000, - "y": 3240, + "x": 2990, + "y": 3450, "width": 400, "height": 106, "isBold": false, @@ -14717,8 +14624,8 @@ "type": "table", "schemaName": "FrontOffice", "tableName": "SetPasswordForUserRequest", - "x": 1200, - "y": 2690, + "x": 2490, + "y": 3370, "width": 400, "height": 155, "isBold": false, @@ -14729,30 +14636,14 @@ "a": 1 } }, - { - "type": "table", - "schemaName": "FrontOffice", - "tableName": "CreateContractOtpTokenRequest", - "x": 469, - "y": 3498, - "width": 400, - "height": 110, - "isBold": false, - "titleColor": { - "r": 255, - "g": 214, - "b": 147, - "a": 1 - } - }, { "type": "table", "schemaName": "FrontOffice", "tableName": "AcceptContractRequest", - "x": 479, - "y": 3718, + "x": 1190, + "y": 2880, "width": 400, - "height": 110, + "height": 136, "isBold": false, "titleColor": { "r": 255, @@ -14772,21 +14663,21 @@ "visible": true, "vertices": [ { - "x": 1250, - "y": 3219 + "x": 1230, + "y": 3395 }, { - "x": 1250, - "y": 3040 + "x": 1230, + "y": 3170 }, { - "x": 1285, - "y": 3040 + "x": 1275, + "y": 3170 } ], "label": { - "x": 1258, - "y": 3229, + "x": 1238, + "y": 3405, "width": 254, "height": 32, "fontName": "Arial Unicode MS", @@ -14810,17 +14701,17 @@ "visible": true, "vertices": [ { - "x": 1405, - "y": 3290 + "x": 1395, + "y": 3430 }, { - "x": 1485, - "y": 3290 + "x": 1465, + "y": 3430 } ], "label": { - "x": 1401, - "y": 3262, + "x": 1391, + "y": 3402, "width": 249, "height": 32, "fontName": "Arial Unicode MS", @@ -14844,17 +14735,17 @@ "visible": true, "vertices": [ { - "x": 1050, - "y": 3219 + "x": 1030, + "y": 3395 }, { - "x": 1050, - "y": 2655 + "x": 1030, + "y": 2845 } ], "label": { - "x": 1058, - "y": 3229, + "x": 1038, + "y": 3405, "width": 238, "height": 32, "fontName": "Arial Unicode MS", @@ -14878,17 +14769,17 @@ "visible": true, "vertices": [ { - "x": 975, - "y": 3400 + "x": 965, + "y": 3580 }, { - "x": 895, - "y": 3400 + "x": 885, + "y": 3580 } ], "label": { - "x": 991, - "y": 3402, + "x": 981, + "y": 3582, "width": 295, "height": 32, "fontName": "Arial Unicode MS", @@ -14912,17 +14803,17 @@ "visible": true, "vertices": [ { - "x": 1190, - "y": 3575 + "x": 1180, + "y": 3751 }, { - "x": 1190, - "y": 3555 + "x": 1180, + "y": 3775 } ], "label": { - "x": 1198, - "y": 3565, + "x": 1188, + "y": 3741, "width": 305, "height": 32, "fontName": "Arial Unicode MS", @@ -14946,17 +14837,17 @@ "visible": true, "vertices": [ { - "x": 465, - "y": 3400 + "x": 455, + "y": 3580 }, { "x": 445, - "y": 3400 + "y": 3580 } ], "label": { - "x": 481, - "y": 3402, + "x": 471, + "y": 3582, "width": 357, "height": 32, "fontName": "Arial Unicode MS", @@ -14980,17 +14871,17 @@ "visible": true, "vertices": [ { - "x": 1190, - "y": 3703 + "x": 1180, + "y": 3923 }, { - "x": 1190, - "y": 3725 + "x": 1180, + "y": 3935 } ], "label": { - "x": 1198, - "y": 3693, + "x": 1188, + "y": 3913, "width": 442, "height": 32, "fontName": "Arial Unicode MS", @@ -15014,21 +14905,21 @@ "visible": true, "vertices": [ { - "x": 870, - "y": 4755 + "x": 3170, + "y": 645 }, { - "x": 870, - "y": 4520 + "x": 3170, + "y": 400 }, { - "x": 905, - "y": 4520 + "x": 3215, + "y": 400 } ], "label": { - "x": 878, - "y": 4735, + "x": 3178, + "y": 625, "width": 394, "height": 32, "fontName": "Arial Unicode MS", @@ -15052,25 +14943,25 @@ "visible": true, "vertices": [ { - "x": 955, - "y": 4790 + "x": 3265, + "y": 680 }, { - "x": 1000, - "y": 4790 + "x": 3310, + "y": 680 }, { - "x": 1000, - "y": 4760 + "x": 3310, + "y": 650 }, { - "x": 1045, - "y": 4760 + "x": 3355, + "y": 650 } ], "label": { - "x": 951, - "y": 4792, + "x": 3261, + "y": 682, "width": 360, "height": 32, "fontName": "Arial Unicode MS", @@ -15094,17 +14985,17 @@ "visible": true, "vertices": [ { - "x": 610, - "y": 4755 + "x": 2920, + "y": 645 }, { - "x": 610, - "y": 4281 + "x": 2920, + "y": 151 } ], "label": { - "x": 618, - "y": 4735, + "x": 2928, + "y": 625, "width": 355, "height": 32, "fontName": "Arial Unicode MS", @@ -15128,17 +15019,17 @@ "visible": true, "vertices": [ { - "x": 525, - "y": 4870 + "x": 2835, + "y": 760 }, { - "x": 445, - "y": 4870 + "x": 2755, + "y": 760 } ], "label": { - "x": 541, - "y": 4842, + "x": 2851, + "y": 732, "width": 334, "height": 32, "fontName": "Arial Unicode MS", @@ -15162,17 +15053,17 @@ "visible": true, "vertices": [ { - "x": 740, - "y": 4985 + "x": 3050, + "y": 875 }, { - "x": 740, - "y": 5015 + "x": 3050, + "y": 905 } ], "label": { - "x": 748, - "y": 4975, + "x": 3058, + "y": 865, "width": 344, "height": 32, "fontName": "Arial Unicode MS", @@ -15196,17 +15087,17 @@ "visible": true, "vertices": [ { - "x": 955, - "y": 4950 + "x": 3265, + "y": 840 }, { - "x": 2075, - "y": 4950 + "x": 4375, + "y": 840 } ], "label": { - "x": 951, - "y": 4952, + "x": 3261, + "y": 842, "width": 401, "height": 32, "fontName": "Arial Unicode MS", @@ -15230,25 +15121,25 @@ "visible": true, "vertices": [ { - "x": 955, - "y": 4920 + "x": 3265, + "y": 810 }, { - "x": 2030, - "y": 4920 + "x": 4340, + "y": 810 }, { - "x": 2030, - "y": 4820 + "x": 4340, + "y": 710 }, { - "x": 2075, - "y": 4820 + "x": 4375, + "y": 710 } ], "label": { - "x": 951, - "y": 4922, + "x": 3261, + "y": 812, "width": 411, "height": 32, "fontName": "Arial Unicode MS", @@ -15272,17 +15163,17 @@ "visible": true, "vertices": [ { - "x": 2505, - "y": 4980 + "x": 4805, + "y": 870 }, { - "x": 2525, - "y": 4980 + "x": 4835, + "y": 870 } ], "label": { - "x": 2501, - "y": 4982, + "x": 4801, + "y": 872, "width": 463, "height": 32, "fontName": "Arial Unicode MS", @@ -15306,17 +15197,17 @@ "visible": true, "vertices": [ { - "x": 2505, - "y": 4790 + "x": 4805, + "y": 680 }, { - "x": 2525, - "y": 4790 + "x": 4835, + "y": 680 } ], "label": { - "x": 2501, - "y": 4792, + "x": 4801, + "y": 682, "width": 548, "height": 32, "fontName": "Arial Unicode MS", @@ -15340,17 +15231,17 @@ "visible": true, "vertices": [ { - "x": 4305, - "y": 4620 + "x": 4275, + "y": 4850 }, { - "x": 4315, - "y": 4620 + "x": 4295, + "y": 4850 } ], "label": { - "x": 4301, - "y": 4592, + "x": 4271, + "y": 4822, "width": 280, "height": 32, "fontName": "Arial Unicode MS", @@ -15374,17 +15265,17 @@ "visible": true, "vertices": [ { - "x": 4090, - "y": 4705 + "x": 4060, + "y": 4945 }, { - "x": 4090, - "y": 4725 + "x": 4060, + "y": 4975 } ], "label": { - "x": 4098, - "y": 4695, + "x": 4068, + "y": 4935, "width": 290, "height": 32, "fontName": "Arial Unicode MS", @@ -15408,17 +15299,17 @@ "visible": true, "vertices": [ { - "x": 3875, - "y": 4620 + "x": 3845, + "y": 4850 }, { - "x": 3865, - "y": 4620 + "x": 3815, + "y": 4850 } ], "label": { - "x": 3891, - "y": 4622, + "x": 3861, + "y": 4852, "width": 347, "height": 32, "fontName": "Arial Unicode MS", @@ -15442,17 +15333,17 @@ "visible": true, "vertices": [ { - "x": 4090, - "y": 4555 + "x": 4060, + "y": 4795 }, { - "x": 4090, - "y": 4523 + "x": 4060, + "y": 4743 } ], "label": { - "x": 4098, - "y": 4565, + "x": 4068, + "y": 4805, "width": 357, "height": 32, "fontName": "Arial Unicode MS", @@ -15476,17 +15367,17 @@ "visible": true, "vertices": [ { - "x": 3435, - "y": 4620 + "x": 3385, + "y": 4850 }, { - "x": 3415, - "y": 4620 + "x": 3365, + "y": 4850 } ], "label": { - "x": 3451, - "y": 4622, + "x": 3401, + "y": 4852, "width": 409, "height": 32, "fontName": "Arial Unicode MS", @@ -15510,17 +15401,17 @@ "visible": true, "vertices": [ { - "x": 4090, - "y": 4375 + "x": 4060, + "y": 4595 }, { - "x": 4090, - "y": 4350 + "x": 4060, + "y": 4560 } ], "label": { - "x": 4098, - "y": 4385, + "x": 4068, + "y": 4605, "width": 494, "height": 32, "fontName": "Arial Unicode MS", @@ -15544,25 +15435,25 @@ "visible": true, "vertices": [ { - "x": 3725, - "y": 650 + "x": 945, + "y": 4990 }, { - "x": 3760, - "y": 650 + "x": 980, + "y": 4990 }, { - "x": 3760, - "y": 600 + "x": 980, + "y": 4930 }, { - "x": 3795, - "y": 600 + "x": 1015, + "y": 4930 } ], "label": { - "x": 3721, - "y": 652, + "x": 941, + "y": 4992, "width": 354, "height": 32, "fontName": "Arial Unicode MS", @@ -15586,25 +15477,25 @@ "visible": true, "vertices": [ { - "x": 3725, - "y": 720 + "x": 945, + "y": 5060 }, { - "x": 4260, - "y": 720 + "x": 1480, + "y": 5060 }, { - "x": 4260, - "y": 670 + "x": 1480, + "y": 5010 }, { - "x": 4295, - "y": 670 + "x": 1515, + "y": 5010 } ], "label": { - "x": 3721, - "y": 692, + "x": 941, + "y": 5032, "width": 364, "height": 32, "fontName": "Arial Unicode MS", @@ -15628,17 +15519,17 @@ "visible": true, "vertices": [ { - "x": 3380, - "y": 615 + "x": 600, + "y": 4955 }, { - "x": 3380, - "y": 175 + "x": 600, + "y": 4515 } ], "label": { - "x": 3388, - "y": 625, + "x": 608, + "y": 4965, "width": 330, "height": 32, "fontName": "Arial Unicode MS", @@ -15662,17 +15553,17 @@ "visible": true, "vertices": [ { - "x": 3295, - "y": 720 + "x": 515, + "y": 5060 }, { - "x": 3225, - "y": 720 + "x": 445, + "y": 5060 } ], "label": { - "x": 3311, - "y": 692, + "x": 531, + "y": 5032, "width": 325, "height": 32, "fontName": "Arial Unicode MS", @@ -15696,17 +15587,17 @@ "visible": true, "vertices": [ { - "x": 3510, - "y": 820 + "x": 730, + "y": 5160 }, { - "x": 3510, - "y": 845 + "x": 730, + "y": 5175 } ], "label": { - "x": 3518, - "y": 780, + "x": 738, + "y": 5120, "width": 304, "height": 32, "fontName": "Arial Unicode MS", @@ -15730,17 +15621,17 @@ "visible": true, "vertices": [ { - "x": 3725, - "y": 790 + "x": 945, + "y": 5120 }, { - "x": 4795, - "y": 790 + "x": 2015, + "y": 5120 } ], "label": { - "x": 3721, - "y": 792, + "x": 941, + "y": 5122, "width": 314, "height": 32, "fontName": "Arial Unicode MS", @@ -15764,25 +15655,25 @@ "visible": true, "vertices": [ { - "x": 3725, - "y": 750 + "x": 945, + "y": 5090 }, { - "x": 4760, - "y": 750 + "x": 1980, + "y": 5090 }, { - "x": 4760, - "y": 640 + "x": 1980, + "y": 4980 }, { - "x": 4795, - "y": 640 + "x": 2015, + "y": 4980 } ], "label": { - "x": 3721, - "y": 752, + "x": 941, + "y": 5092, "width": 371, "height": 32, "fontName": "Arial Unicode MS", @@ -15806,21 +15697,21 @@ "visible": true, "vertices": [ { - "x": 3520, - "y": 615 + "x": 740, + "y": 4955 }, { - "x": 3520, - "y": 270 + "x": 740, + "y": 4610 }, { - "x": 3555, - "y": 270 + "x": 775, + "y": 4610 } ], "label": { - "x": 3528, - "y": 625, + "x": 748, + "y": 4965, "width": 381, "height": 32, "fontName": "Arial Unicode MS", @@ -15844,17 +15735,17 @@ "visible": true, "vertices": [ { - "x": 5225, - "y": 600 + "x": 2445, + "y": 4940 }, { - "x": 5245, - "y": 600 + "x": 2465, + "y": 4940 } ], "label": { - "x": 5221, - "y": 602, + "x": 2441, + "y": 4942, "width": 433, "height": 32, "fontName": "Arial Unicode MS", @@ -15878,17 +15769,17 @@ "visible": true, "vertices": [ { - "x": 3985, - "y": 270 + "x": 1205, + "y": 4610 }, { - "x": 3995, - "y": 270 + "x": 1215, + "y": 4610 } ], "label": { - "x": 3981, - "y": 272, + "x": 1201, + "y": 4612, "width": 518, "height": 32, "fontName": "Arial Unicode MS", @@ -15912,17 +15803,17 @@ "visible": true, "vertices": [ { - "x": 1405, - "y": 3500 + "x": 1395, + "y": 3720 }, { - "x": 4025, - "y": 3500 + "x": 4985, + "y": 3720 } ], "label": { - "x": 1395, - "y": 3462, + "x": 1385, + "y": 3682, "width": 315, "height": 32, "fontName": "Arial Unicode MS", @@ -15946,25 +15837,25 @@ "visible": true, "vertices": [ { - "x": 1405, - "y": 3480 + "x": 1395, + "y": 3690 }, { - "x": 3980, - "y": 3480 + "x": 4950, + "y": 3690 }, { - "x": 3980, - "y": 3370 + "x": 4950, + "y": 3580 }, { - "x": 4025, - "y": 3370 + "x": 4985, + "y": 3580 } ], "label": { - "x": 1395, - "y": 3442, + "x": 1385, + "y": 3652, "width": 325, "height": 32, "fontName": "Arial Unicode MS", @@ -15988,25 +15879,25 @@ "visible": true, "vertices": [ { - "x": 1405, - "y": 3450 + "x": 1395, + "y": 3660 }, { - "x": 3480, - "y": 3450 + "x": 4440, + "y": 3660 }, { - "x": 3480, - "y": 3360 + "x": 4440, + "y": 3580 }, { - "x": 3515, - "y": 3360 + "x": 4485, + "y": 3580 } ], "label": { - "x": 1395, - "y": 3412, + "x": 1385, + "y": 3622, "width": 290, "height": 32, "fontName": "Arial Unicode MS", @@ -16030,25 +15921,25 @@ "visible": true, "vertices": [ { - "x": 1405, - "y": 3420 + "x": 1395, + "y": 3630 }, { - "x": 2970, - "y": 3420 + "x": 3940, + "y": 3630 }, { - "x": 2970, - "y": 3340 + "x": 3940, + "y": 3550 }, { - "x": 3005, - "y": 3340 + "x": 3975, + "y": 3550 } ], "label": { - "x": 1395, - "y": 3382, + "x": 1385, + "y": 3592, "width": 280, "height": 32, "fontName": "Arial Unicode MS", @@ -16072,17 +15963,17 @@ "visible": true, "vertices": [ { - "x": 1715, - "y": 3040 + "x": 1705, + "y": 3170 }, { - "x": 1735, - "y": 3040 + "x": 1715, + "y": 3170 } ], "label": { - "x": 1705, - "y": 3002, + "x": 1695, + "y": 3132, "width": 317, "height": 32, "fontName": "Arial Unicode MS", @@ -16106,25 +15997,25 @@ "visible": true, "vertices": [ { - "x": 955, - "y": 4890 + "x": 3265, + "y": 780 }, { - "x": 1520, - "y": 4890 + "x": 3820, + "y": 780 }, { - "x": 1520, - "y": 4790 + "x": 3820, + "y": 680 }, { - "x": 1555, - "y": 4790 + "x": 3865, + "y": 680 } ], "label": { - "x": 945, - "y": 4852, + "x": 3255, + "y": 742, "width": 384, "height": 32, "fontName": "Arial Unicode MS", @@ -16148,21 +16039,21 @@ "visible": true, "vertices": [ { - "x": 740, - "y": 4755 + "x": 3050, + "y": 645 }, { - "x": 740, - "y": 4360 + "x": 3050, + "y": 240 }, { - "x": 785, - "y": 4360 + "x": 3085, + "y": 240 } ], "label": { - "x": 742, - "y": 4725, + "x": 3052, + "y": 615, "width": 369, "height": 32, "fontName": "Arial Unicode MS", @@ -16186,21 +16077,25 @@ "visible": true, "vertices": [ { - "x": 1625, - "y": 1690 + "x": 1885, + "y": 1870 }, { - "x": 2480, - "y": 1690 + "x": 2260, + "y": 1870 }, { - "x": 2480, - "y": 1395 + "x": 2260, + "y": 740 + }, + { + "x": 2145, + "y": 740 } ], "label": { - "x": 963, - "y": 1652, + "x": 1223, + "y": 1832, "width": 360, "height": 32, "fontName": "Arial Unicode MS", @@ -16224,21 +16119,17 @@ "visible": true, "vertices": [ { - "x": 1400, - "y": 1425 + "x": 1660, + "y": 1615 }, { - "x": 1400, - "y": 790 - }, - { - "x": 1995, - "y": 790 + "x": 1660, + "y": 1215 } ], "label": { - "x": 561, - "y": 1395, + "x": 821, + "y": 1585, "width": 309, "height": 32, "fontName": "Arial Unicode MS", @@ -16262,17 +16153,17 @@ "visible": true, "vertices": [ { - "x": 2325, - "y": 1320 + "x": 2010, + "y": 885 }, { - "x": 2345, - "y": 1320 + "x": 2010, + "y": 815 } ], "label": { - "x": 1670, - "y": 1282, + "x": 1367, + "y": 855, "width": 396, "height": 32, "fontName": "Arial Unicode MS", @@ -16296,17 +16187,17 @@ "visible": true, "vertices": [ { - "x": 2110, - "y": 1065 + "x": 1795, + "y": 1150 }, { - "x": 2110, - "y": 855 + "x": 1775, + "y": 1150 } ], "label": { - "x": 1270, - "y": 1035, + "x": 963, + "y": 1112, "width": 345, "height": 32, "fontName": "Arial Unicode MS", @@ -16330,17 +16221,25 @@ "visible": true, "vertices": [ { - "x": 2480, - "y": 1045 + "x": 1570, + "y": 75 }, { - "x": 2480, - "y": 1255 + "x": 1570, + "y": 40 + }, + { + "x": 2010, + "y": 40 + }, + { + "x": 2010, + "y": 675 } ], "label": { - "x": 2037, - "y": 995, + "x": 1127, + "y": 45, "width": 471, "height": 32, "fontName": "Arial Unicode MS", @@ -16364,17 +16263,21 @@ "visible": true, "vertices": [ { - "x": 2265, - "y": 790 + "x": 1440, + "y": 595 }, { - "x": 2225, - "y": 790 + "x": 1440, + "y": 1150 + }, + { + "x": 1545, + "y": 1150 } ], "label": { - "x": 2053, - "y": 752, + "x": 1220, + "y": 545, "width": 420, "height": 32, "fontName": "Arial Unicode MS", @@ -16399,16 +16302,16 @@ "vertices": [ { "x": 1035, - "y": 2010 + "y": 2200 }, { "x": 1175, - "y": 2010 + "y": 2200 } ], "label": { "x": 1031, - "y": 1982, + "y": 2172, "width": 326, "height": 32, "fontName": "Arial Unicode MS", @@ -16433,24 +16336,24 @@ "vertices": [ { "x": 1035, - "y": 1980 + "y": 2170 }, { "x": 1140, - "y": 1980 + "y": 2170 }, { "x": 1140, - "y": 1850 + "y": 2050 }, { - "x": 1175, - "y": 1850 + "x": 1435, + "y": 2050 } ], "label": { "x": 1031, - "y": 1982, + "y": 2172, "width": 336, "height": 32, "fontName": "Arial Unicode MS", @@ -16475,24 +16378,24 @@ "vertices": [ { "x": 1035, - "y": 1890 + "y": 2080 }, { "x": 1080, - "y": 1890 + "y": 2080 }, { "x": 1080, - "y": 1360 + "y": 1540 }, { - "x": 1445, - "y": 1360 + "x": 1795, + "y": 1540 } ], "label": { "x": 1031, - "y": 1892, + "y": 2082, "width": 393, "height": 32, "fontName": "Arial Unicode MS", @@ -16516,21 +16419,21 @@ "visible": true, "vertices": [ { - "x": 860, - "y": 1855 + "x": 730, + "y": 2045 }, { - "x": 860, - "y": 430 + "x": 730, + "y": 340 }, { - "x": 2295, - "y": 430 + "x": 765, + "y": 340 } ], "label": { - "x": 868, - "y": 1865, + "x": 738, + "y": 2055, "width": 403, "height": 32, "fontName": "Arial Unicode MS", @@ -16554,17 +16457,17 @@ "visible": true, "vertices": [ { - "x": 1875, - "y": 1320 + "x": 2010, + "y": 1425 }, { - "x": 1895, - "y": 1320 + "x": 2010, + "y": 1405 } ], "label": { - "x": 1430, - "y": 1322, + "x": 1577, + "y": 1435, "width": 455, "height": 32, "fontName": "Arial Unicode MS", @@ -16588,17 +16491,17 @@ "visible": true, "vertices": [ { - "x": 2480, - "y": 503 + "x": 1145, + "y": 340 }, { - "x": 2480, - "y": 525 + "x": 1225, + "y": 340 } ], "label": { - "x": 2130, - "y": 493, + "x": 783, + "y": 342, "width": 540, "height": 32, "fontName": "Arial Unicode MS", @@ -16622,25 +16525,17 @@ "visible": true, "vertices": [ { - "x": 2285, - "y": 210 + "x": 1835, + "y": 740 }, { - "x": 2740, - "y": 210 - }, - { - "x": 2740, - "y": 1320 - }, - { - "x": 2625, - "y": 1320 + "x": 1865, + "y": 740 } ], "label": { - "x": 1640, - "y": 182, + "x": 1190, + "y": 712, "width": 452, "height": 32, "fontName": "Arial Unicode MS", @@ -16664,17 +16559,17 @@ "visible": true, "vertices": [ { - "x": 2110, - "y": 345 + "x": 1660, + "y": 875 }, { - "x": 2110, - "y": 715 + "x": 1660, + "y": 1075 } ], "label": { - "x": 1650, - "y": 305, + "x": 1200, + "y": 835, "width": 401, "height": 32, "fontName": "Arial Unicode MS", @@ -16698,21 +16593,21 @@ "visible": true, "vertices": [ { - "x": 720, - "y": 1855 + "x": 870, + "y": 2045 }, { - "x": 720, - "y": 210 + "x": 870, + "y": 740 }, { - "x": 1925, - "y": 210 + "x": 1475, + "y": 740 } ], "label": { - "x": 385, - "y": 1825, + "x": 535, + "y": 2015, "width": 337, "height": 32, "fontName": "Arial Unicode MS", @@ -16737,16 +16632,16 @@ "vertices": [ { "x": 760, - "y": 2045 + "y": 2235 }, { "x": 760, - "y": 2065 + "y": 2255 } ], "label": { "x": 479, - "y": 1995, + "y": 2185, "width": 283, "height": 32, "fontName": "Arial Unicode MS", @@ -16771,16 +16666,16 @@ "vertices": [ { "x": 580, - "y": 1855 + "y": 2045 }, { "x": 580, - "y": 165 + "y": 245 } ], "label": { "x": 222, - "y": 1825, + "y": 2015, "width": 360, "height": 32, "fontName": "Arial Unicode MS", @@ -16805,16 +16700,16 @@ "vertices": [ { "x": 485, - "y": 1950 + "y": 2140 }, { "x": 405, - "y": 1950 + "y": 2140 } ], "label": { "x": 495, - "y": 1912, + "y": 2102, "width": 370, "height": 32, "fontName": "Arial Unicode MS", @@ -16838,25 +16733,25 @@ "visible": true, "vertices": [ { - "x": 1405, - "y": 3400 + "x": 1395, + "y": 3600 }, { - "x": 2460, - "y": 3400 + "x": 3440, + "y": 3600 }, { - "x": 2460, - "y": 3310 + "x": 3440, + "y": 3520 }, { - "x": 2495, - "y": 3310 + "x": 3475, + "y": 3520 } ], "label": { - "x": 1089, - "y": 3360, + "x": 1079, + "y": 3560, "width": 306, "height": 32, "fontName": "Sans", @@ -16880,25 +16775,25 @@ "visible": true, "vertices": [ { - "x": 1405, - "y": 3370 + "x": 1395, + "y": 3580 }, { - "x": 1950, - "y": 3370 + "x": 2940, + "y": 3580 }, { - "x": 1950, - "y": 3310 + "x": 2940, + "y": 3520 }, { - "x": 1985, - "y": 3310 + "x": 2975, + "y": 3520 } ], "label": { - "x": 1079, - "y": 3330, + "x": 1069, + "y": 3540, "width": 316, "height": 32, "fontName": "Sans", @@ -16922,21 +16817,25 @@ "visible": true, "vertices": [ { - "x": 1150, - "y": 3219 + "x": 1395, + "y": 3550 }, { - "x": 1150, - "y": 2770 + "x": 2430, + "y": 3550 }, { - "x": 1185, - "y": 2770 + "x": 2430, + "y": 3470 + }, + { + "x": 2475, + "y": 3470 } ], "label": { - "x": 1152, - "y": 3187, + "x": 1385, + "y": 3510, "width": 317, "height": 32, "fontName": "Sans", @@ -16952,44 +16851,6 @@ "isVisible": false } }, - { - "name": "fk_UserService_CreateContractOtpTokenRequest_1", - "sourceTableName": "UserService", - "sourceSchemaName": "FrontOffice", - "lineWidth": 1, - "visible": true, - "vertices": [ - { - "x": 975, - "y": 3410 - }, - { - "x": 669, - "y": 3410 - }, - { - "x": 669, - "y": 3483 - } - ], - "label": { - "x": 640, - "y": 3370, - "width": 345, - "height": 32, - "fontName": "Sans", - "fontSize": 14, - "fontColor": { - "r": 51, - "g": 51, - "b": 51, - "a": 1 - }, - "isFontBold": false, - "isFontItalic": false, - "isVisible": false - } - }, { "name": "fk_UserService_AcceptContractRequest_1", "sourceTableName": "UserService", @@ -16998,21 +16859,21 @@ "visible": true, "vertices": [ { - "x": 975, - "y": 3420 + "x": 1130, + "y": 3395 }, { - "x": 679, - "y": 3420 + "x": 1130, + "y": 2940 }, { - "x": 679, - "y": 3703 + "x": 1175, + "y": 2940 } ], "label": { - "x": 703, - "y": 3380, + "x": 850, + "y": 3363, "width": 282, "height": 32, "fontName": "Sans", diff --git a/src/FrontOffice.BFF.Application/UserCQ/Commands/CreateContractOtpToken/CreateContractOtpTokenCommandHandler.cs b/src/FrontOffice.BFF.Application/UserCQ/Commands/CreateContractOtpToken/CreateContractOtpTokenCommandHandler.cs index 92d4af5..582500d 100644 --- a/src/FrontOffice.BFF.Application/UserCQ/Commands/CreateContractOtpToken/CreateContractOtpTokenCommandHandler.cs +++ b/src/FrontOffice.BFF.Application/UserCQ/Commands/CreateContractOtpToken/CreateContractOtpTokenCommandHandler.cs @@ -1,3 +1,5 @@ +using CMSMicroservice.Protobuf.Protos.OtpToken; + namespace FrontOffice.BFF.Application.UserCQ.Commands.CreateContractOtpToken; public class CreateContractOtpTokenCommandHandler : IRequestHandler { @@ -10,7 +12,11 @@ public class CreateContractOtpTokenCommandHandler : IRequestHandler Handle(CreateContractOtpTokenCommand request, CancellationToken cancellationToken) { - //TODO: Implement your business logic - return new Unit(); + var response = await _context.OtpToken.CreateNewOtpTokenAsync(request: new CreateNewOtpTokenRequest() + { + + }, cancellationToken: cancellationToken); + if (response.Success && !string.IsNullOrWhiteSpace(response.Code)) + await _kavenegarService.VerifyLookup(mobile: request.Mobile, response.Code); } } diff --git a/src/FrontOffice.BFF.WebApi/Services/UserService.cs b/src/FrontOffice.BFF.WebApi/Services/UserService.cs index 1481856..d6fe990 100644 --- a/src/FrontOffice.BFF.WebApi/Services/UserService.cs +++ b/src/FrontOffice.BFF.WebApi/Services/UserService.cs @@ -1,4 +1,5 @@ -using FrontOffice.BFF.Protobuf.Protos.User; +using FrontOffice.BFF.Application.UserCQ.Commands.AcceptContract; +using FrontOffice.BFF.Application.UserCQ.Commands.CreateContractOtpToken; using FrontOffice.BFF.WebApi.Common.Services; using FrontOffice.BFF.Application.UserCQ.Commands.UpdateUser; using FrontOffice.BFF.Application.UserCQ.Commands.DeleteUser; diff --git a/src/Protobufs/FrontOffice.BFF.User.Protobuf/Validator/AcceptContractRequestValidator.cs b/src/Protobufs/FrontOffice.BFF.User.Protobuf/Validator/AcceptContractRequestValidator.cs index 4ed250e..003d39a 100644 --- a/src/Protobufs/FrontOffice.BFF.User.Protobuf/Validator/AcceptContractRequestValidator.cs +++ b/src/Protobufs/FrontOffice.BFF.User.Protobuf/Validator/AcceptContractRequestValidator.cs @@ -1,5 +1,5 @@ using FluentValidation; -using FrontOfficeMicroservice.Protobuf.Protos.User; +using FrontOffice.BFF.User.Protobuf.Protos.User; namespace FrontOfficeMicroservice.Protobuf.Validator.User; public class AcceptContractRequestValidator : AbstractValidator diff --git a/src/Protobufs/FrontOffice.BFF.User.Protobuf/Validator/CreateContractOtpTokenRequestValidator.cs b/src/Protobufs/FrontOffice.BFF.User.Protobuf/Validator/CreateContractOtpTokenRequestValidator.cs index 58c4baf..a96e901 100644 --- a/src/Protobufs/FrontOffice.BFF.User.Protobuf/Validator/CreateContractOtpTokenRequestValidator.cs +++ b/src/Protobufs/FrontOffice.BFF.User.Protobuf/Validator/CreateContractOtpTokenRequestValidator.cs @@ -1,5 +1,5 @@ using FluentValidation; -using FrontOfficeMicroservice.Protobuf.Protos.User; +using FrontOffice.BFF.User.Protobuf.Protos.User; namespace FrontOfficeMicroservice.Protobuf.Validator.User; public class CreateContractOtpTokenRequestValidator : AbstractValidator