src/Models/HoldingBalanceResponse.php
<?php
// Copyright (C) 2022 Ivan Stasiuk <ivan@stasi.uk>.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
namespace BrokeYourBike\WesternUnion\Models;
use Spatie\DataTransferObject\Casters\ArrayCaster;
use Spatie\DataTransferObject\Attributes\CastWith;
use BrokeYourBike\DataTransferObject\JsonResponse;
/**
* @author Ivan Stasiuk <ivan@stasi.uk>
*/
class HoldingBalanceResponse extends JsonResponse
{
public string $customerId;
/** @var HoldingBalance[] */
#[CastWith(ArrayCaster::class, itemType: HoldingBalance::class)]
public array $holdingBalances;
}