πŸ§ͺ Toplu Bonus API Testi

πŸ”‘ Token alΔ±nΔ±yor...
βœ… Token hazΔ±r

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
πŸ“‹ TEST 1: Tek istekte birden fazla ClientId (Array)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ“€ Request Body:
{
    "ClientId": [
        1296470003,
        359158166
    ],
    "Amount": 100,
    "PartnerBonusId": 606517,
    "Type": 5
}

πŸ“₯ Response:
HTTP Code: 200
Body: {
    "HasError": true,
    "AlertType": "danger",
    "AlertMessage": "Object reference not set to an instance of an object.",
    "ModelErrors": [],
    "Data": null
}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
πŸ“‹ TEST 2: ClientIds field ile birden fazla ID
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ“€ Request Body:
{
    "ClientIds": [
        1296470003,
        359158166
    ],
    "Amount": 100,
    "PartnerBonusId": 606517,
    "Type": 5
}

πŸ“₯ Response:
HTTP Code: 200
Body: {
    "HasError": true,
    "AlertType": "danger",
    "AlertMessage": "Not allowed (AllPartners)",
    "ModelErrors": [],
    "Data": null
}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
πŸ“‹ TEST 3: Clients array with multiple objects
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ“€ Request Body:
{
    "Clients": [
        {
            "ClientId": 1296470003,
            "Amount": 100
        },
        {
            "ClientId": 359158166,
            "Amount": 100
        }
    ],
    "PartnerBonusId": 606517,
    "Type": 5
}

πŸ“₯ Response:
HTTP Code: 200
Body: {
    "HasError": true,
    "AlertType": "danger",
    "AlertMessage": "Not allowed (AllPartners)",
    "ModelErrors": [],
    "Data": null
}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
πŸ“‹ TEST 4: AddClientsToBonusBulk endpoint
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ“€ Request Body:
{
    "ClientIds": [
        1296470003,
        359158166
    ],
    "Amount": 100,
    "PartnerBonusId": 606517,
    "Type": 5
}

πŸ“₯ Response:
HTTP Code: 404
Body: {
    "Message": "No HTTP resource was found that matches the request URI 'http:\/\/backofficewebadmin.betconstruct.com:8080\/api\/tr\/Client\/AddClientsToBonusBulk'."
}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
πŸ“‹ TEST 5: AddClientsToBonus endpoint (plural)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ“₯ Response:
HTTP Code: 404
Body: {
    "Message": "No HTTP resource was found that matches the request URI 'http:\/\/backofficewebadmin.betconstruct.com:8080\/api\/tr\/Client\/AddClientsToBonus'."
}