diff --git a/Api/OnlineSalesAutoCrop.CoreAPI.Models/Requests/Integrations/IntegrationMaterialFreeGoodsRequest.cs b/Api/OnlineSalesAutoCrop.CoreAPI.Models/Requests/Integrations/IntegrationMaterialFreeGoodsRequest.cs index e9c4096..5b623ce 100644 --- a/Api/OnlineSalesAutoCrop.CoreAPI.Models/Requests/Integrations/IntegrationMaterialFreeGoodsRequest.cs +++ b/Api/OnlineSalesAutoCrop.CoreAPI.Models/Requests/Integrations/IntegrationMaterialFreeGoodsRequest.cs @@ -23,9 +23,12 @@ public class IntegrationMaterialFreeGoodsRequest [StringLength(13, MinimumLength = 1, ErrorMessage = "CustomerNumber must be between 1 and 13 characters.")] public string? CustomerNumber { get; set; } // nullable + [Required(ErrorMessage = "CustomerPriceGroup Is Required")] [StringLength(2, MinimumLength = 1, ErrorMessage = "CustomerPriceGroup must be between 1 and 2 characters.")] public string? CustomerPriceGroup { get; set; } + [Required(ErrorMessage = "MaterialCode Is Required")] + [StringLength(18, MinimumLength = 1, ErrorMessage = "MaterialCode must be between 1 and 18 characters.")] public string? MaterialCode { get; set; } public IList Slabs { get; set; } diff --git a/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-07-01-115_f855c45771f44710a3d54f20a3ed6b60.json b/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-07-01-115_f855c45771f44710a3d54f20a3ed6b60.json deleted file mode 100644 index fa26f2b..0000000 --- a/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-07-01-115_f855c45771f44710a3d54f20a3ed6b60.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "timestamp": "2026-08-10T06:07:01.1034033+00:00", - "request": { - "method": "GET", - "scheme": "http", - "host": "localhost:4204", - "path": "/", - "query": "", - "ipAddress": "127.0.0.1", - "body": "" - }, - "response": { - "statusCode": 200, - "body": "\u003Cb\u003EEase Taskforce Api is Running\u003C/b\u003E" - } -} \ No newline at end of file diff --git a/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-07-22-241_f3421f3fecff431baf173b22213d8ab0.json b/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-07-22-241_f3421f3fecff431baf173b22213d8ab0.json deleted file mode 100644 index 76b6059..0000000 --- a/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-07-22-241_f3421f3fecff431baf173b22213d8ab0.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "timestamp": "2026-08-10T06:07:22.2388472+00:00", - "request": { - "method": "POST", - "scheme": "http", - "host": "localhost:4204", - "path": "/api/v1/IntegrationAuth/login", - "query": "", - "ipAddress": "::1", - "body": "{\r\n \u0022loginId\u0022 : \u0022SAPUser\u0022,\r\n \u0022password\u0022 : \u0022SapUser@#1213@%!\u0022\r\n}" - }, - "response": { - "statusCode": 200, - "body": "{\u0022loginId\u0022:\u0022SAPUser\u0022,\u0022accessToken\u0022:\u0022eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJMb2dpbklkIjoiU0FQVXNlciIsIkVtYWlsIjoiIiwiQXV0aEtleSI6IiIsIkhhc2hLZXkiOiJmOWE5ODgxNC1mYjgxLTRkYjctYjNkZi04OGM5MzVjNjgyYTYiLCJuYmYiOjE3ODYzNDIwNDIsImV4cCI6MTc4NjM4NTI0MiwiaWF0IjoxNzg2MzQyMDQyfQ.VhHYVb58-iXAe6uJfK-JddsssTO3pGzoMj0zeSrOjv290uWj6X7VbquntXHmKUBcrMabRBtjwPT7YdQZn0njwQ\u0022,\u0022refreshToken\u0022:\u0022VsChwEpKHMb7eFC2ZVK/o8uRbZ/0ochGgsAFR1lKpH4=\u0022,\u0022loginStatus\u0022:0,\u0022accessTokenExpiry\u0022:\u00222026-08-10T12:09:22.1883677\u002B06:00\u0022,\u0022returnStatus\u0022:200,\u0022returnMessage\u0022:[]}" - } -} \ No newline at end of file diff --git a/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-22-54-383_673926f73cdf4adfa98ae6f9852995b6.json b/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-22-54-383_673926f73cdf4adfa98ae6f9852995b6.json deleted file mode 100644 index 7e91c64..0000000 --- a/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-22-54-383_673926f73cdf4adfa98ae6f9852995b6.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "timestamp": "2026-08-10T06:22:54.3731022+00:00", - "request": { - "method": "POST", - "scheme": "http", - "host": "localhost:4204", - "path": "/api/v1/IntegrationAuth/login", - "query": "", - "ipAddress": "::1", - "body": "{\r\n \u0022loginId\u0022 : \u0022SAPUser\u0022,\r\n \u0022password\u0022 : \u0022SapUser@#1213@%!\u0022\r\n}" - }, - "response": { - "statusCode": 200, - "body": { - "loginId": "SAPUser", - "accessToken": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJMb2dpbklkIjoiU0FQVXNlciIsIkVtYWlsIjoiIiwiQXV0aEtleSI6IiIsIkhhc2hLZXkiOiJmYjE5OWZlMi0zMGVlLTQ2YjItOWYzNC1lNjI4ZTY5NTkzN2QiLCJuYmYiOjE3ODYzNDI5NzQsImV4cCI6MTc4NjM4NjE3MywiaWF0IjoxNzg2MzQyOTc0fQ.NQH786tBsAdB-oToocQzbV4t_esZwR3t2gszdZCFnD5xanE4So-PnXmOtZKjfIIgP6AEcIek5_FqMz8fVwWkXg", - "refreshToken": "jolD3tih1hLRiGNi/4WvLJDCTyNUJKuRJHEWoTDk7X4=", - "loginStatus": 0, - "accessTokenExpiry": "2026-08-10T12:24:54.3150635\u002B06:00", - "returnStatus": 200, - "returnMessage": [] - } - } -} \ No newline at end of file diff --git a/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-23-57-898_1c97d426dd29416fa570085bdcec3840.json b/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-23-57-898_1c97d426dd29416fa570085bdcec3840.json deleted file mode 100644 index 9ad6650..0000000 --- a/Api/OnlineSalesAutoCrop.CoreAPI/ApiLogs/2026-08-10_12-23-57-898_1c97d426dd29416fa570085bdcec3840.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "timestamp": "2026-08-10T06:23:57.8920082+00:00", - "request": { - "method": "POST", - "scheme": "http", - "host": "localhost:4204", - "path": "/api/v1/IntegrationAuth/login", - "query": "", - "ipAddress": "::1", - "body": { - "loginId": "SAPUser", - "password": "SapUser@#1213@%!" - } - }, - "response": { - "statusCode": 200, - "body": { - "loginId": "SAPUser", - "accessToken": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJMb2dpbklkIjoiU0FQVXNlciIsIkVtYWlsIjoiIiwiQXV0aEtleSI6IiIsIkhhc2hLZXkiOiJhYTQ0NjAwZC0wM2VmLTQxN2QtOTM0Mi1lNmVhNDZhYWFkMzEiLCJuYmYiOjE3ODYzNDMwMzcsImV4cCI6MTc4NjM4NjIzNywiaWF0IjoxNzg2MzQzMDM3fQ.ML8boRFCmpgRiXOOjBLPihcJ4lTfqQnRJru9z66uc2Ovp2U3sbs4VHGTaVA0dOXW809humaicRBlspWptOKCfg", - "refreshToken": "nZfBF\u002BkjKgl9ObZXLHvaNb69d07e3jOubNRXdA3D8BQ=", - "loginStatus": 0, - "accessTokenExpiry": "2026-08-10T12:25:57.7816164\u002B06:00", - "returnStatus": 200, - "returnMessage": [] - } - } -} \ No newline at end of file