brokeyourbike/interswitch-api-client-php

View on GitHub
src/Responses/TransferResponse.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

// Copyright (C) 2024 Ivan Stasiuk <ivan@stasi.uk>.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

namespace BrokeYourBike\Interswitch\Responses;

use Spatie\DataTransferObject\Attributes\MapFrom;
use BrokeYourBike\DataTransferObject\JsonResponse;

/**
 * @author Ivan Stasiuk <ivan@stasi.uk>
 */
class TransferResponse extends JsonResponse
{
    #[MapFrom('ResponseCode')]
    public ?string $code;

    #[MapFrom('ResponseCodeGrouping')]
    public ?string $message;
}