public static function get(
        int $cashRegisterId,
        int $monetaryAccountId = null,
        array $customHeaders = []
    ): BunqResponseCashRegister {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_READ,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $cashRegisterId]
            ),
            [],
            $customHeaders
        );

        return BunqResponseCashRegister::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_GET)
        );
    }
public static function get(
        int $cashRegisterId,
        int $monetaryAccountId = null,
        array $customHeaders = []
    ): BunqResponseCashRegister {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_READ,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $cashRegisterId]
            ),
            [],
            $customHeaders
        );

        return BunqResponseCashRegister::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_GET)
        );
    }
public static function get ( int $ cashRegisterId , int $ monetaryAccountId = null , array $ customHeaders = [ ] ) : BunqResponseCashRegister { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> get ( vsprintf ( self :: ENDPOINT_URL_READ , [ static :: determineUserId ( ) , static :: determineMonetaryAccountId ( $ monetaryAccountId ) , $ cashRegisterId ] ) , [ ] , $ customHeaders ) ; return BunqResponseCashRegister :: castFromBunqResponse ( static :: fromJson ( $ responseRaw , self :: OBJECT_TYPE_GET ) ) ; }
Get a specific CashRegister.

@param int $cashRegisterId
@param int|null $monetaryAccountId
@param string[] $customHeaders

@return BunqResponseCashRegister
Get a specific CashRegister .